APIdia Launch Partner
Top Description Fields Constructors Methods
javax.xml.stream

public Class XMLStreamException

extends Exception
Class Inheritance

The base exception for unexpected processing errors. This Exception class is used to report well-formedness errors as well as unexpected processing conditions.
Author
Copyright (c) 2009 by Oracle Corporation. All Rights Reserved.
Since
1.6
Version
1.0

Field Summary

Modifier and TypeField and Description
protected Location
location

The location of the error.

protected Throwable
nested

The nested exception.

private static final long

Constructor Summary

AccessConstructor and Description
public
XMLStreamException()

Default constructor

public
XMLStreamException(String
the message to report
msg
)

Construct an exception with the associated message.

public
XMLStreamException(Throwable
a nested exception
th
)

Construct an exception with the associated exception

public
XMLStreamException(String
the message to report
msg
,
Throwable
a nested exception
th
)

Construct an exception with the associated message and exception

public
XMLStreamException(String
the message to report
msg
,
Location
the location of the error
location
,
Throwable
a nested exception
th
)

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

public
XMLStreamException(String
the message to report
msg
,
Location
the location of the error
location
)

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

Method Summary

Modifier and TypeMethod and Description
public Location

Returns:

the location of the exception, may be null if none is available
getLocation
()

Gets the location of the exception

public Throwable

Returns:

Nested exception
getNestedException
()

Gets the nested exception.

Field Detail

locationback to summary
protected Location location

The location of the error.

Annotations
@SuppressWarnings:serial
nestedback to summary
protected Throwable nested

The nested exception.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Constructor Detail

XMLStreamExceptionback to summary
public XMLStreamException()

Default constructor

XMLStreamExceptionback to summary
public XMLStreamException(String msg)

Construct an exception with the associated message.

Parameters
msg:String

the message to report

XMLStreamExceptionback to summary
public XMLStreamException(Throwable th)

Construct an exception with the associated exception

Parameters
th:Throwable

a nested exception

XMLStreamExceptionback to summary
public XMLStreamException(String msg, Throwable th)

Construct an exception with the associated message and exception

Parameters
msg:String

the message to report

th:Throwable

a nested exception

XMLStreamExceptionback to summary
public XMLStreamException(String msg, Location location, Throwable th)

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

Parameters
msg:String

the message to report

location:Location

the location of the error

th:Throwable

a nested exception

XMLStreamExceptionback to summary
public XMLStreamException(String msg, Location location)

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

Parameters
msg:String

the message to report

location:Location

the location of the error

Method Detail

getLocationback to summary
public Location getLocation()

Gets the location of the exception

Returns:Location

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

getNestedExceptionback to summary
public Throwable getNestedException()

Gets the nested exception.

Returns:Throwable

Nested exception