UsherErrorProtocol
public protocol UsherErrorProtocol : CustomStringConvertible, Error
The protocol for all Usher Error classes.
-
kind
Default implementationThe error’s category.
Default Implementation
The error’s kind. 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. Only use this for logging or debugging purpose.
Declaration
Swift
var info: String { get }
-
nsError
Extension methodNSError representation for an object conforming to UsherErrorProtocol.
Declaration
Swift
var nsError: NSError { get }