public class XMLStreamException extends 异常
Modifier and Type | Field and Description |
---|---|
protected Location
|
location
|
protected Throwable
|
nested
|
Constructor and Description |
---|
XMLStreamException()
默认构造函数
|
XMLStreamException(String msg)
使用关联的消息构造异常。
|
XMLStreamException(String msg,
Location location)
使用关联的消息,异常和位置构造异常。
|
XMLStreamException(String msg,
Location location, Throwable th)
使用关联的消息,异常和位置构造异常。
|
XMLStreamException(String msg,
Throwable th)
使用关联的消息和异常构造异常
|
XMLStreamException(Throwable th)
构造与异常异常的异常
|
Modifier and Type | Method and Description |
---|---|
Location
|
getLocation()
获取异常的位置
|
Throwable |
getNestedException()
获取嵌套的异常。
|
addSuppressed,
fillInStackTrace,
getCause, getLocalizedMessage,
getMessage, getStackTrace,
getSuppressed, initCause,
printStackTrace,
printStackTrace,
printStackTrace,
setStackTrace,
toString
public XMLStreamException()
public XMLStreamException(String msg)
msg
- 要报告的消息
public XMLStreamException(Throwable th)
th
- 嵌套异常
public XMLStreamException(String msg, Throwable th)
th
- 嵌套异常
msg
- 要报告的消息
public XMLStreamException(String msg, Location location, Throwable th)
th
- 嵌套异常
msg
- 要报告的消息
location
- 错误的位置