PinChangeRecoverableError

public enum PinChangeRecoverableError : RecoverableError
extension PinChangeRecoverableError: LocalizedError

The recoverable error that can occur when changing a PIN. When this error occurs, the changePin(context:handler:) method will be invoked again. This error will be returned by the lastRecoverableError.

  • Bad credentials were provided for old PIN.

    Declaration

    Swift

    case InvalidPin
  • The provided PIN has characters that are not digits, or its length is not compliant with the minimum and maximum PIN lengths defined in PinPolicy.

    See

    See PinPolicy

    Declaration

    Swift

    case InvalidPinFormat(message: String? = nil)

    Parameters

    message

    Additional information about the error.

  • Provided new PIN is identical with the one to be changed.

    Declaration

    Swift

    case OldPinEqualsNewPin
  • The provided PIN has failed the validation done in validatePinForPinChange(_:onSuccess:onError:).

    Declaration

    Swift

    case CustomValidationError(message: String, cause: Error? = nil)

    Parameters

    message

    Additional information about the error.

    cause

    The underlying error that is related to the error occurred.

Localized descriptions

  • A message describing what error occurred.

    Declaration

    Swift

    public var errorDescription: String? { get }