java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
dev.hloth.zgztransport.CardFormatException
- All Implemented Interfaces:
Serializable
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 Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CardFormatException
Creates the exception.- Parameters:
message- what was wrong with the bytes
-