public class

XMLStreamException

extends Exception
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ javax.xml.stream.XMLStreamException

Class Overview

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

Summary

Fields
protected Location location
protected Throwable nested
Public Constructors
XMLStreamException()
Default constructor
XMLStreamException(String msg)
Construct an exception with the assocated message.
XMLStreamException(Throwable th)
Construct an exception with the assocated exception
XMLStreamException(String msg, Throwable th)
Construct an exception with the assocated message and exception
XMLStreamException(String msg, Location location, Throwable th)
Construct an exception with the assocated message, exception and location.
XMLStreamException(String msg, Location location)
Construct an exception with the assocated message, exception and location.
Public Methods
Location getLocation()
Gets the location of the exception
Throwable getNestedException()
Gets the nested exception.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Fields

protected Location location

protected Throwable nested

Public Constructors

public XMLStreamException ()

Default constructor

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
msg the message to report
th a nested exception

public XMLStreamException (String msg, Location location, Throwable th)

Construct an exception with the assocated message, exception and location.

Parameters
msg the message to report
location the location of the error
th a nested exception

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 Methods

public Location getLocation ()

Gets the location of the exception

Returns
  • the location of the exception, may be null if none is available

public Throwable getNestedException ()

Gets the nested exception.

Returns
  • Nested exception