FLError
public protocol FLError : Error
A Type respresenting Error.
A Int (UInt32) error code with hex representation is used to represent error codes.
First 16 Bits (Bits 0-15) represent component error codes.
Second 16 Bits (Bits 16-31) represent error categories.
-
The error code representing the error. This code should be interpreted as combination of component and category error codes.
Declaration
Swift
var errorCode: Int { get } -
The description of the error.
Declaration
Swift
var errorDescription: String { get } -
The internal error if any.
Declaration
Swift
var internalError: FLError? { get } -
The contextual description of the error.
Declaration
Swift
var contextualDescription: String? { get } -
hexErrorCodeExtension methodHexadecimal representation of the error code.
Declaration
Swift
var hexErrorCode: String { get } -
componentErrorCodeExtension methodComponent error code of
FLErrorDeclaration
Swift
var componentErrorCode: Int { get } -
doesBelongToCategory(_:Extension method) Utility API to check if error code belong to any category
Declaration
Swift
func doesBelongToCategory(_ category: Int) -> BoolParameters
categoryCategory representing
ErrorCategory -
httpStatusCodeExtension methodThe http status code of the underlying error
Declaration
Swift
var httpStatusCode: Int? { get }