public final class FormatException extends RuntimeException
Constructor and Description |
---|
FormatException(String string,
String reason)
Constructs a
FormatException . |
Modifier and Type | Method and Description |
---|---|
String |
getReason()
Returns the reason.
|
String |
getString()
Returns the string that is considered invalid.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public FormatException(String string, String reason) throws IllegalArgumentException
FormatException
.string
- the character string that mismatches the format, cannot be
null
.reason
- description of the problem, can be null
.IllegalArgumentException
- if s == null
.See http://www.xins.org/.