public class XMLStreamException
extends java.lang.Exception
Modifier and Type | Field and Description |
---|---|
protected Location |
location |
protected java.lang.Throwable |
nested |
Constructor and Description |
---|
XMLStreamException()
Default constructor
|
XMLStreamException(java.lang.String msg)
Construct an exception with the associated message.
|
XMLStreamException(java.lang.String msg,
Location location)
Construct an exception with the associated message and location.
|
XMLStreamException(java.lang.String msg,
Location location,
java.lang.Throwable th)
Construct an exception with the associated message, exception and location.
|
XMLStreamException(java.lang.String msg,
java.lang.Throwable th)
Construct an exception with the associated message and exception
|
XMLStreamException(java.lang.Throwable th)
Construct an exception with the associated exception
|
Modifier and Type | Method and Description |
---|---|
Location |
getLocation()
Gets the location of the exception
|
java.lang.Throwable |
getNestedException()
Gets the nested exception.
|
protected java.lang.Throwable nested
protected Location location
public XMLStreamException()
public XMLStreamException(java.lang.String msg)
msg
- the message to reportpublic XMLStreamException(java.lang.Throwable th)
th
- a nested exceptionpublic XMLStreamException(java.lang.String msg, java.lang.Throwable th)
th
- a nested exceptionmsg
- the message to reportpublic XMLStreamException(java.lang.String msg, Location location, java.lang.Throwable th)
th
- a nested exceptionmsg
- the message to reportlocation
- the location of the errorpublic XMLStreamException(java.lang.String msg, Location location)
msg
- the message to reportlocation
- the location of the errorpublic java.lang.Throwable getNestedException()
public Location getLocation()
Copyright © 2013, Oracle and/or its affiliates. All rights reserved.
Use is subject to License Terms. Your use of this web site or any of its contents or software indicates your agreement to be bound by these License Terms.