Package fr.marcwrobel.jbanking.creditor
Class CreditorIdentifierFormatException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- fr.marcwrobel.jbanking.creditor.CreditorIdentifierFormatException
-
- All Implemented Interfaces:
Serializable
public class CreditorIdentifierFormatException extends RuntimeException
Thrown to indicate that an attempt has been made to convert a string to aCreditorIdentifier, but that the string does not have the appropriate format.- Author:
- Charles Kayser
- See Also:
CreditorIdentifier(String), Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CreditorIdentifierFormatException(String input, String message)Constructs aCreditorIdentifierFormatExceptionwith the string that caused the error and the given detail message.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreditorIdentifierFormatExceptionforNotProperlyFormattedInput(String input)Creates aCreditorIdentifierFormatExceptiontelling the given Creditor Identifier is not properly formatted.StringgetInputString()Returns the input String that caused this exception to be raised.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
forNotProperlyFormattedInput
public static CreditorIdentifierFormatException forNotProperlyFormattedInput(String input)
Creates aCreditorIdentifierFormatExceptiontelling the given Creditor Identifier is not properly formatted.- Parameters:
input- a string- Returns:
- a non-null
CreditorIdentifierFormatException
-
getInputString
public String getInputString()
Returns the input String that caused this exception to be raised.- Returns:
- a string
-
-