public class StringTooLongException extends InvalidDataException
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
Constructor and Description |
---|
StringTooLongException()
Create a new
StringTooLongException object. |
StringTooLongException(String field,
String theString,
int maxLength)
Create a new
StringTooLongException object. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
private static final long serialVersionUID
public StringTooLongException()
StringTooLongException
object.public StringTooLongException(String field, String theString, int maxLength)
StringTooLongException
object.field
- The name of the field or parameter that must
have a shorter valuetheString
- The string that is too longmaxLength
- The maximum allowed length of the string