ProgrammaticAccessLibrary Framework Reference

  • PALNonceErrorCode is an enumeration defining error codes within the PALNonceErrorDomain.

  • Errors can occur during resource fetching, such as invalid responses, no responses, or timeouts.

  • Nonce creation can fail due to encoding issues, excessive length, or incompatible OS versions.

  • Each error code has a corresponding integer value for both Swift and Objective-C.

  • An unknown error is represented by the code PALNonceErrorCodeUnknown.

PALNonceErrorCode

enum PALNonceErrorCode : NSInteger {}

Error codes in PALNonceErrorDomain.

  • An unknown error occurred.

    Declaration

    Swift

    case unknown = 100

    Objective-C

    PALNonceErrorCodeUnknown = 100
  • Received an invalid response while fetching resources.

    Declaration

    Swift

    case fetchBadResponse = 200

    Objective-C

    PALNonceErrorCodeFetchBadResponse = 200
  • Could not obtain a response while fetching resources.

    Declaration

    Swift

    case fetchNoResponse = 201

    Objective-C

    PALNonceErrorCodeFetchNoResponse = 201
  • Timed out waiting for a response while fetching resources.

    Declaration

    Swift

    case fetchTimedOut = 202

    Objective-C

    PALNonceErrorCodeFetchTimedOut = 202
  • Could not initialize encoding while creating a nonce.

    Declaration

    Swift

    case encoderInitFailed = 300

    Objective-C

    PALNonceErrorCodeEncoderInitFailed = 300
  • Could not encode while creating a nonce.

    Declaration

    Swift

    case encodingFailed = 301

    Objective-C

    PALNonceErrorCodeEncodingFailed = 301
  • The generated nonce was too long.

    Declaration

    Swift

    case tooLong = 302

    Objective-C

    PALNonceErrorCodeTooLong = 302
  • The OS version is too old and not supported.

    Declaration

    Swift

    case osVersionTooOld = 303

    Objective-C

    PALNonceErrorCodeOSVersionTooOld = 303