Error
public protocol Error: Swift.Error
Error protocol.
-
An error identifier used for API error.
Declaration
Swift
var code: Int -
A human (end user friendly) readable/comprehensible description of the error.
Declaration
Swift
var message: String
-
isSessionError()Extension methodIndicates if the error is a session error. Can be useful to know if a new session has to be generated.
Returns
trueif the error is related to the session.falseif not.Declaration
Swift
public func isSessionError() -> BoolReturn Value
trueif the error is related to the session.falseif not.
Error Protocol Reference