ErrorParserProtocol
public protocol ErrorParserProtocol:Swift.Error
Error parser protocol
-
status code for internet response
Declaration
Swift
var statusCode : StatusCode -
message with server error
Declaration
Swift
var message : String -
init with status code and message
Declaration
Swift
init(_ statusCode: StatusCode, message: String) -
Parse Error json from server and return Error class
Declaration
Swift
static func parseError(_ JSON: AnyObject) -> SelfParameters
JSONJSON response from server
Return Value
Self Error class
-
handleError(_:)Extension methodStatic function for convert
Swift.ErrortoSelferrorDeclaration
Swift
static func handleError(_ error: Swift.Error) -> SelfParameters
errorSwift.Error
Return Value
error object that conform
ErrorParserProtocol
ErrorParserProtocol Protocol Reference