EMPinErrorCode

Objective-C

enum EMPinErrorCode : NSInteger {}

Swift

enum EMPinErrorCode : Int, @unchecked Sendable

NSError codes for EMPinErrorDomain

  • The digits in the pin is a series (e.g. 2345)

    Declaration

    Objective-C

    EMPinNumericSeriesError = 1

    Swift

    case numericSeriesError = 1
  • The pin has non digits characters (e.g. 23AF)

    Declaration

    Objective-C

    EMPinNonDigitsError = 2

    Swift

    case nonDigitsError = 2
  • The pin is a palindrome (e.g. 12321)

    Declaration

    Objective-C

    EMPinPalindromeError = 3

    Swift

    case palindromeError = 3
  • All digits in the pin is the same number (e.g. 2222)

    Declaration

    Objective-C

    EMPinSameDigitsError = 4

    Swift

    case sameDigitsError = 4
  • The pin is too short

    Declaration

    Objective-C

    EMPinTooShortError = 5

    Swift

    case tooShortError = 5
  • The new pin equals the old one

    Declaration

    Objective-C

    EMPinEqualsOldPinError = 6

    Swift

    case equalsOldPinError = 6
  • The error was caused by an error in the EMPinRuleErrorDomain To access the error, use the NSUnderlyingErrorKey key on the userInfo.

    Since

    2.1

    Declaration

    Objective-C

    EMPinRuleErrorDomainError = 7

    Swift

    case ruleErrorDomainError = 7