UsherErrorProtocol
public protocol UsherErrorProtocol : CustomStringConvertible, Error
The protocol for all Usher Error classes.
-
kind
Default implementationThe error’s category.
Default Implementation
The kind of error. See
ErrorKind
.Declaration
Swift
var kind: ErrorKind { get }
-
The error code.
Declaration
Swift
var code: Int { get }
-
The title for the error.
Declaration
Swift
var title: String { get }
-
The message for the error.
Declaration
Swift
var message: String { get }
-
The detailed error information. Use this only for logging or debugging purpose.
Declaration
Swift
var info: String { get }
-
Server response error status.
Declaration
Swift
var status: String? { get }
-
Server response error reason.
Declaration
Swift
var reason: String? { get }
-
Server response error localized message.
Declaration
Swift
var localizedMessage: String? { get }
-
Http Response Status Code
Declaration
Swift
var httpResponseStatusCode: Int { get }
-
nsError
Extension methodNSError representation for an object conforming to UsherErrorProtocol.
Declaration
Swift
var nsError: NSError { get }