public class TextException extends PersistenceException
TextException
is used to represent conditions
when an XML element text value is in an invalid state. Typically
this is used when text cannot be serialized or deserialized. Also
this may be thrown if the Text
annotation is used
to label a field that is not a primitive type.Constructor and Description |
---|
TextException(String text,
Object... list)
Constructor for the
TextException object. |
TextException(Throwable cause,
String text,
Object... list)
Constructor for the
TextException object. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public TextException(String text, Object... list)
TextException
object. This
constructor takes a format string an a variable number of object
arguments, which can be inserted into the format string.text
- a format string used to present the error messagelist
- a list of arguments to insert into the stringpublic TextException(Throwable cause, String text, Object... list)
TextException
object. This
constructor takes a format string an a variable number of object
arguments, which can be inserted into the format string.cause
- the source exception this is used to representtext
- a format string used to present the error messagelist
- a list of arguments to insert into the string