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
true
if the error is related to the session.false
if not.Declaration
Swift
public func isSessionError() -> Bool
Return Value
true
if the error is related to the session.false
if not.