Top Description Fields Constructors Methods
jdk.internal.util.xml

public Class XMLStreamException

extends Exception
Class Inheritance

A copy of the StAX XMLStreamException without Location support 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 Throwable
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

Method Summary

Modifier and TypeMethod and Description
public Throwable

Returns:

Nested exception
getNestedException
()

Gets the nested exception.

Field Detail

nestedback to summary
protected Throwable nested
serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

Annotations
@Serial

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

Method Detail

getNestedExceptionback to summary
public Throwable getNestedException()

Gets the nested exception.

Returns:Throwable

Nested exception