ProgrammaticAccessLibrary Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
-
An unknown error occurred.
Declaration
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
Objective-C
PALNonceErrorCodeTooLong = 302
-
The OS version is too old and not supported.
Declaration
Swift
case osVersionTooOld = 303
Objective-C
PALNonceErrorCodeOSVersionTooOld = 303
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-08-20 UTC.
[null,null,["Last updated 2025-08-20 UTC."],[[["\u003cp\u003e\u003ccode\u003ePALNonceErrorCode\u003c/code\u003e is an enumeration defining error codes within the \u003ccode\u003ePALNonceErrorDomain\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eErrors can occur during resource fetching, such as invalid responses, no responses, or timeouts.\u003c/p\u003e\n"],["\u003cp\u003eNonce creation can fail due to encoding issues, excessive length, or incompatible OS versions.\u003c/p\u003e\n"],["\u003cp\u003eEach error code has a corresponding integer value for both Swift and Objective-C.\u003c/p\u003e\n"],["\u003cp\u003eAn unknown error is represented by the code \u003ccode\u003ePALNonceErrorCodeUnknown\u003c/code\u003e.\u003c/p\u003e\n"]]],["`PALNonceErrorCode` defines error codes within `PALNonceErrorDomain`. Errors include `unknown` (100), `fetchBadResponse` (200), `fetchNoResponse` (201), `fetchTimedOut` (202), `encoderInitFailed` (300), `encodingFailed` (301), `tooLong` (302), and `osVersionTooOld` (303). These cover issues from general failures to problems during resource fetching, nonce creation, and OS incompatibility. Each error is represented by a unique integer value in both Swift and Objective-C declarations.\n"],null,["# ProgrammaticAccessLibrary Framework Reference\n\nPALNonceErrorCode\n=================\n\n enum PALNonceErrorCode : NSInteger {}\n\nError codes in [PALNonceErrorDomain](../Constants.html#/c:@PALNonceErrorDomain).\n- `\n ``\n ``\n `\n\n ### [PALNonceErrorCodeUnknown](#/c:@E@PALNonceErrorCode@PALNonceErrorCodeUnknown)\n\n `\n ` \n An unknown error occurred. \n\n #### Declaration\n\n Swift \n\n case unknown = 100\n\n Objective-C \n\n PALNonceErrorCodeUnknown = 100\n\n- `\n ``\n ``\n `\n\n ### [PALNonceErrorCodeFetchBadResponse](#/c:@E@PALNonceErrorCode@PALNonceErrorCodeFetchBadResponse)\n\n `\n ` \n Received an invalid response while fetching resources. \n\n #### Declaration\n\n Swift \n\n case fetchBadResponse = 200\n\n Objective-C \n\n PALNonceErrorCodeFetchBadResponse = 200\n\n- `\n ``\n ``\n `\n\n ### [PALNonceErrorCodeFetchNoResponse](#/c:@E@PALNonceErrorCode@PALNonceErrorCodeFetchNoResponse)\n\n `\n ` \n Could not obtain a response while fetching resources. \n\n #### Declaration\n\n Swift \n\n case fetchNoResponse = 201\n\n Objective-C \n\n PALNonceErrorCodeFetchNoResponse = 201\n\n- `\n ``\n ``\n `\n\n ### [PALNonceErrorCodeFetchTimedOut](#/c:@E@PALNonceErrorCode@PALNonceErrorCodeFetchTimedOut)\n\n `\n ` \n Timed out waiting for a response while fetching resources. \n\n #### Declaration\n\n Swift \n\n case fetchTimedOut = 202\n\n Objective-C \n\n PALNonceErrorCodeFetchTimedOut = 202\n\n- `\n ``\n ``\n `\n\n ### [PALNonceErrorCodeEncoderInitFailed](#/c:@E@PALNonceErrorCode@PALNonceErrorCodeEncoderInitFailed)\n\n `\n ` \n Could not initialize encoding while creating a nonce. \n\n #### Declaration\n\n Swift \n\n case encoderInitFailed = 300\n\n Objective-C \n\n PALNonceErrorCodeEncoderInitFailed = 300\n\n- `\n ``\n ``\n `\n\n ### [PALNonceErrorCodeEncodingFailed](#/c:@E@PALNonceErrorCode@PALNonceErrorCodeEncodingFailed)\n\n `\n ` \n Could not encode while creating a nonce. \n\n #### Declaration\n\n Swift \n\n case encodingFailed = 301\n\n Objective-C \n\n PALNonceErrorCodeEncodingFailed = 301\n\n- `\n ``\n ``\n `\n\n ### [PALNonceErrorCodeTooLong](#/c:@E@PALNonceErrorCode@PALNonceErrorCodeTooLong)\n\n `\n ` \n The generated nonce was too long. \n\n #### Declaration\n\n Swift \n\n case tooLong = 302\n\n Objective-C \n\n PALNonceErrorCodeTooLong = 302\n\n- `\n ``\n ``\n `\n\n ### [PALNonceErrorCodeOSVersionTooOld](#/c:@E@PALNonceErrorCode@PALNonceErrorCodeOSVersionTooOld)\n\n `\n ` \n The OS version is too old and not supported. \n\n #### Declaration\n\n Swift \n\n case osVersionTooOld = 303\n\n Objective-C \n\n PALNonceErrorCodeOSVersionTooOld = 303"]]