Class CardFormatException

All Implemented Interfaces:
Serializable

public class CardFormatException extends IllegalArgumentException
Thrown when a block does not hold what the card specification says it should: a wrong length, a checksum that does not match, a field outside its range or a value no known product uses.

It extends IllegalArgumentException, as do the range checks the constructors of this package perform, so a caller can catch both with one clause.

See Also:
  • Constructor Details

    • CardFormatException

      public CardFormatException(String message)
      Creates the exception.
      Parameters:
      message - what was wrong with the bytes