Serializable
public class XMLStreamException extends Exception
Modifier and Type | Field | Description |
---|---|---|
protected Location |
location |
The location of the error. |
protected Throwable |
nested |
The nested exception. |
Constructor | Description |
---|---|
XMLStreamException() |
Default constructor |
XMLStreamException |
Construct an exception with the associated message. |
XMLStreamException |
Construct an exception with the associated message and exception |
XMLStreamException |
Construct an exception with the associated message, exception and location. |
XMLStreamException |
Construct an exception with the associated message, exception and location. |
XMLStreamException |
Construct an exception with the associated exception |
Modifier and Type | Method | Description |
---|---|---|
Location |
getLocation() |
Gets the location of the exception |
Throwable |
getNestedException() |
Gets the nested exception. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
protected Throwable nested
protected Location location
public XMLStreamException()
public XMLStreamException(String msg)
msg
- the message to reportpublic XMLStreamException(Throwable th)
th
- a nested exceptionpublic XMLStreamException(String msg, Throwable th)
msg
- the message to reportth
- a nested exceptionpublic XMLStreamException(String msg, Location location, Throwable th)
msg
- the message to reportlocation
- the location of the errorth
- a nested exceptionpublic XMLStreamException(String msg, Location location)
msg
- the message to reportlocation
- the location of the errorpublic Throwable getNestedException()
public Location getLocation()
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.xml/javax/xml/stream/XMLStreamException.html