Class WrongLengthException

All Implemented Interfaces:
Serializable

public class WrongLengthException extends IBANException
Indicates that a candate IBAN failed validation because it's the wrong length for its country code.
See Also:
  • 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().