ProgrammaticAccessLibrary Framework Reference

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

  • Errors can occur during nonce creation due to encoding issues, exceeding length limits, or unsupported OS versions.

  • Resource fetching during nonce operations can result in errors like invalid responses, connection failures, or timeouts.

  • Each error code is represented by an integer value accessible in both Swift and Objective-C.

  • An unknown error is represented by PALNonceErrorCodeUnknown and indicates an unexpected issue.

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