This class represents an exception throw by an {@link TypedXMLStreamReader} or an {@link 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 ( {@link XMLStreamException}s 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 {@link IllegalArgumentException}, since that is the supertype of regular parsing/conversion types for primitive types.
@since 3.0
@author Santiago.PericasGeertsen@sun.com
@author Tatu Saloranta