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
-错误的位置
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.