MPQRErrorCode

enum MPQRErrorCode {}

MPQRError have property errorType, the errorType type is the MPQRErrorCode enum

  • MPQRError errorType is InvalidFormat include the following error:

    • Luhn checksum is wrong
    • The value of the length of the tag is not numeric
    • The length of the value is less than what is specified

    Declaration

    Objective-C

    InvalidFormat

    Swift

    case InvalidFormat = 0
  • MPQRError errorType is InvalidTagValue include the following error:

    • The value has different format than it specified
    • The value is wrong, i.e. CRC, country

    Declaration

    Objective-C

    InvalidTagValue

    Swift

    case InvalidTagValue = 1
  • MPQRError errorType is UnknownTag when the tag is not defined, i.e. more than 99

    Declaration

    Objective-C

    UnknownTag

    Swift

    case UnknownTag = 2
  • MPQRError errorType is MissingTag when the mandatory tag is not present

    Declaration

    Objective-C

    MissingTag

    Swift

    case MissingTag = 3
  • MPQRError errorType is ConflictingTag include the following error:

    • The value of some tag exist when it must not exist
    • Setting MAI and Unrestricted Data beyond the defined tag

    Declaration

    Objective-C

    ConflictingTag

    Swift

    case ConflictingTag = 4
  • MPQRError errorType is RFUTag when try to set Reserve for Use tag

    Declaration

    Objective-C

    RFUTag

    Swift

    case RFUTag = 5
  • MPQRError errorType is DuplicateTag when parsing a QR Code and there are two same tag

    Declaration

    Objective-C

    DuplicateTag

    Swift

    case DuplicateTag = 6
  • MPQRError errorType is Limit when try to set MAI data and Unrestricted data more than it is allocated

    Declaration

    Objective-C

    Limit

    Swift

    case Limit = 7