Package nl.garvelink.iban
Class WrongLengthException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
nl.garvelink.iban.IBANException
nl.garvelink.iban.WrongLengthException
- All Implemented Interfaces:
Serializable
Indicates that a candate IBAN failed validation because it's the wrong length for its country code.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintThe actual length of the input IBAN.intThe expected length for the input, given its country code.Methods inherited from class nl.garvelink.iban.IBANException
getFailedInputMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
getExpectedLength
public int getExpectedLength()The expected length for the input, given its country code.- Returns:
- expected length of country IBAN.
-
getActualLength
public int getActualLength()The actual length of the input IBAN.- Returns:
- length of
IBANException.getFailedInput().
-