Error handling
-
Usher Error.
Declaration
Swift
public struct UsherError : UsherErrorProtocol, Equatable
-
The protocol for all Usher Error classes.
Declaration
Swift
public protocol UsherErrorProtocol : CustomStringConvertible, Error
-
For better differentiation, errors are categorized under different categories.
Declaration
Swift
public struct ErrorKind : Equatable, RawRepresentable
-
Type alias for UsherError to represent errors related to validation.
Note
Not available for Objective C. Instead check NSErrors’ domain property.Declaration
Swift
public typealias FormValidationError = UsherErrorProtocol
-
Typealias for UsherError handling closure.
Declaration
Swift
public typealias UsherFailureHandler = (_ error: UsherErrorProtocol) -> Void
-
NSError Extension with helper computed properties.
Declaration
Swift
public extension NSError