Save This Page
Home » openjdk-7 » javax » xml » stream » [javadoc | source]
javax.xml.stream
public class: XMLStreamException [javadoc | source]
java.lang.Object
   java.lang.Throwable
      java.lang.Exception
         javax.xml.stream.XMLStreamException

All Implemented Interfaces:
    Serializable

The base exception for unexpected processing errors. This Exception class is used to report well-formedness errors as well as unexpected processing conditions.
Field Summary
protected  Throwable nested     
protected  Location location     
Fields inherited from java.lang.Exception:
serialVersionUID
Constructor:
 public XMLStreamException() 
 public XMLStreamException(String msg) 
    Construct an exception with the assocated message.
    Parameters:
    msg - the message to report
 public XMLStreamException(Throwable th) 
    Construct an exception with the assocated exception
    Parameters:
    th - a nested exception
 public XMLStreamException(String msg,
    Throwable th) 
    Construct an exception with the assocated message and exception
    Parameters:
    th - a nested exception
    msg - the message to report
 public XMLStreamException(String msg,
    Location location) 
    Construct an exception with the assocated message, exception and location.
    Parameters:
    msg - the message to report
    location - the location of the error
 public XMLStreamException(String msg,
    Location location,
    Throwable th) 
    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
Method from javax.xml.stream.XMLStreamException Summary:
getLocation,   getNestedException
Methods from java.lang.Throwable:
fillInStackTrace,   getCause,   getLocalizedMessage,   getMessage,   getStackTrace,   initCause,   printStackTrace,   printStackTrace,   printStackTrace,   setStackTrace,   toString
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.xml.stream.XMLStreamException Detail:
 public Location getLocation() 
    Gets the location of the exception
 public Throwable getNestedException() 
    Gets the nested exception.