public class javax.xml.stream
XMLStreamException


Hide details Login
Java SE 6
  
Extends: Throwable > Exception

The base exception for unexpected processing errors. This Exception class is used to report well-formedness errors as well as unexpected processing conditions.
version1.0
since1.6

Fields
protected Throwable nested
protected Location location

Constructors
public XMLStreamException()
Default constructor
public XMLStreamException(String msg)
Construct an exception with the assocated message.
msgthe message to report
public XMLStreamException(Throwable th)
Construct an exception with the assocated exception
tha nested exception
public XMLStreamException(String msg, Throwable th)
Construct an exception with the assocated message and exception
tha nested exception
msgthe message to report
public XMLStreamException(String msg, Location location, Throwable th)
Construct an exception with the assocated message, exception and location.
tha nested exception
msgthe message to report
locationthe location of the error
public XMLStreamException(String msg, Location location)
Construct an exception with the assocated message, exception and location.
msgthe message to report
locationthe location of the error

Properties
public Location getLocation()
Gets the location of the exception
returnthe location of the exception, may be null if none is available
public Throwable getNestedException()
Gets the nested exception.
returnNested exception