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 }
  • hexErrorCode Extension method

    Hexadecimal representation of the error code.

    Declaration

    Swift

    var hexErrorCode: String { get }
  • componentErrorCode Extension method

    Component error code of FLError

    Declaration

    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) -> Bool

    Parameters

    category

    Category representing ErrorCategory

  • httpStatusCode Extension method

    The http status code of the underlying error

    Declaration

    Swift

    var httpStatusCode: Int? { get }