ClientError
public enum ClientError : LocalizedError
The error definitions for the Device library. All ClientError cases accept a “message” String argument.
-
Identifies file operation errors.
Declaration
Swift
case file(String)
-
Identifies errors due to invalid object state, such calling activate on an already activated device or if an instance member does not have a valid value.
Declaration
Swift
case state(String)
-
Identifies errors due it invalid method arguments, such as passing Int to a device set method when a String is expected.
Declaration
Swift
case argument(String)
-
Identifies network operation errors or if an http response is expected but not available from a successful request.
Declaration
Swift
case network(String)
-
Identifies security or trust operation errors.
Declaration
Swift
case security(String)
-
Identifies errors due to failed authentication.
Declaration
Swift
case failedAuthentication(String)
-
Identifies errors due to failed persistence operation.
Declaration
Swift
case persistence(String)
-
Identifies errors due to media storage failures.
Declaration
Swift
case storage(String)
-
Identifies errors occurring during REST API calls Associated values are message:String, status:Int, method:Sttring, path:String, httpResponse:HttpResponse Not all values are set on ever instance of .transport.
Declaration
Swift
case transport(String?, Int?, String?, String?, HttpResponse?)
-
Identifies errors occurring during REST API calls related to socket exceptions Associated values are message:String, status:Int
Declaration
Swift
case socket(String, Int)