TypedXMLStreamReader or an TypedXMLStreamWriter. It is
used to indicate a problems occuring when trying convert
data for access using typed read or write methods.
Note that the lexical value is a mandatory thing to pass -- since
this exception subtype need not be used solely for wrapping
purposes (XMLStreamExceptions are to be passed as is,
other underlying root cause types should be unchecked), we
can mandate a lexical value (which may be null, however) to
be passed.
Similarly, aside from generic stream exception, it is mandated
that root causes to wrap need to be of type
IllegalArgumentException, since that is the supertype
of regular parsing/conversion types for primitive types.
| Modifier and Type | Field and Description |
|---|---|
| protected String | mLexical
Lexical representation of the content that could not be converted to the requested type. |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | TypedXMLStreamException(String lexical, String
The message to report. msg)Construct an exception with the associated message. |
| public | TypedXMLStreamException(String lexical, IllegalArgumentException
Underlying conversion problem rootCause)Constructor used to wrap an underlying data conversion error message. |
| public | TypedXMLStreamException(String lexical, String
The message to report. msg, IllegalArgumentException Underlying conversion problem rootCause)Construct an exception with the associated message and exception |
| public | TypedXMLStreamException(String lexical, String
The message to report. msg, Location The location of the error. location, IllegalArgumentException Underlying conversion problem rootCause)Construct an exception with the associated message, exception and location. |
| public | TypedXMLStreamException(String lexical, String
The message to report. msg, Location The location of the error. location)Construct an exception with the associated message, exception and location. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: Lexical representation of unconverted content ornull if unavailable.Return the lexical representation of the attribute or element content that could not be converted as requested. |
| mLexical | back to summary |
|---|---|
| protected String mLexical Lexical representation of the content that could not be
converted to the requested type. May be | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| TypedXMLStreamException | back to summary |
|---|---|
| public TypedXMLStreamException(String lexical, String msg) Construct an exception with the associated message.
| |
| TypedXMLStreamException | back to summary |
|---|---|
| public TypedXMLStreamException(String lexical, IllegalArgumentException rootCause) Constructor used to wrap an underlying data conversion error message.
| |
| TypedXMLStreamException | back to summary |
|---|---|
| public TypedXMLStreamException(String lexical, String msg, IllegalArgumentException rootCause) Construct an exception with the associated message and exception
| |
| TypedXMLStreamException | back to summary |
|---|---|
| public TypedXMLStreamException(String lexical, String msg, Location location, IllegalArgumentException rootCause) Construct an exception with the associated message, exception and location.
| |
| TypedXMLStreamException | back to summary |
|---|---|
| public TypedXMLStreamException(String lexical, String msg, Location location) Construct an exception with the associated message, exception and location. | |
| getLexical | back to summary |
|---|---|
| public String getLexical() Return the lexical representation of the attribute or element content that could not be converted as requested.
| |