AndroidPayQuickstart.FullWalletConfirmationButtonFragment.handleError C# (CSharp) Method

handleError() private method

private handleError ( int errorCode ) : void
errorCode int
return void
        void handleError(int errorCode)
        {
            if (checkAndRetryFullWallet(errorCode)) {
                // handled by retrying
                return;
            }
            switch (errorCode) {
            case WalletConstants.ErrorCodeSpendingLimitExceeded:
                // may be recoverable if the user tries to lower their charge
                // take the user back to the checkout page to try to handle
            case WalletConstants.ErrorCodeInvalidParameters:
            case WalletConstants.ErrorCodeAuthenticationFailure:
            case WalletConstants.ErrorCodeBuyerAccountError:
            case WalletConstants.ErrorCodeMerchantAccountError:
            case WalletConstants.ErrorCodeServiceUnavailable:
            case WalletConstants.ErrorCodeUnsupportedApiVersion:
            case WalletConstants.ErrorCodeUnknown:
            default:
                // unrecoverable error
                // take the user back to the checkout page to handle these errors
                handleUnrecoverableGoogleWalletError (errorCode);
                break;
            }
        }