org.codehaus.stax2.typed
Class TypedXMLStreamException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjavax.xml.stream.XMLStreamException
              extended byorg.codehaus.stax2.typed.TypedXMLStreamException
All Implemented Interfaces:
java.io.Serializable

public class TypedXMLStreamException
extends javax.xml.stream.XMLStreamException

This class represents an exception throw by an TypedXMLStreamReader or an TypedXMLStreamWriter. It is typically used to indicate a problem reading or writing typed data.

Author:
Santiago.PericasGeertsen@sun.com, Tatu Saloranta
See Also:
Serialized Form

Field Summary
protected  java.lang.String characterData
          Lexical representation of the content that could not be converted to the requested type.
 
Fields inherited from class javax.xml.stream.XMLStreamException
location, nested
 
Constructor Summary
TypedXMLStreamException(java.lang.String characterData)
          Default constructor.
TypedXMLStreamException(java.lang.String msg, javax.xml.stream.Location location, java.lang.String characterData)
          Construct an exception with the assocated message, exception and location.
TypedXMLStreamException(java.lang.String msg, javax.xml.stream.Location location, java.lang.Throwable th, java.lang.String characterData)
          Construct an exception with the assocated message, exception and location.
TypedXMLStreamException(java.lang.String msg, java.lang.String lexical, java.lang.String characterData)
          Construct an exception with the assocated message.
TypedXMLStreamException(java.lang.String msg, java.lang.Throwable th, java.lang.String characterData)
          Construct an exception with the assocated message and exception
TypedXMLStreamException(java.lang.Throwable th, java.lang.String characterData)
          Construct an exception with the assocated exception
 
Method Summary
 java.lang.String getCharacterData()
          Return the lexical representation of the attribute or element content that could not be converted as requested.
 
Methods inherited from class javax.xml.stream.XMLStreamException
getLocation, getNestedException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

characterData

protected java.lang.String characterData
Lexical representation of the content that could not be converted to the requested type. May be null if a processor is unable to provide it.

Constructor Detail

TypedXMLStreamException

public TypedXMLStreamException(java.lang.String characterData)
Default constructor.


TypedXMLStreamException

public TypedXMLStreamException(java.lang.String msg,
                               java.lang.String lexical,
                               java.lang.String characterData)
Construct an exception with the assocated message.

Parameters:
msg - The message to report.

TypedXMLStreamException

public TypedXMLStreamException(java.lang.Throwable th,
                               java.lang.String characterData)
Construct an exception with the assocated exception

Parameters:
th - A nested exception.

TypedXMLStreamException

public TypedXMLStreamException(java.lang.String msg,
                               java.lang.Throwable th,
                               java.lang.String characterData)
Construct an exception with the assocated message and exception

Parameters:
th - A nested exception.
msg - The message to report.

TypedXMLStreamException

public TypedXMLStreamException(java.lang.String msg,
                               javax.xml.stream.Location location,
                               java.lang.Throwable th,
                               java.lang.String characterData)
Construct an exception with the assocated message, exception and location.

Parameters:
th - A nested exception.
msg - The message to report.
location - The location of the error.

TypedXMLStreamException

public TypedXMLStreamException(java.lang.String msg,
                               javax.xml.stream.Location location,
                               java.lang.String characterData)
Construct an exception with the assocated message, exception and location.

Parameters:
msg - The message to report.
location - The location of the error.
Method Detail

getCharacterData

public java.lang.String getCharacterData()
Return the lexical representation of the attribute or element content that could not be converted as requested.

Returns:
Lexical representation of unconverted content or null if unavailable.