|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
javax.xml.stream.XMLStreamException
public class XMLStreamException
用于不可预料处理错误的基本异常。此异常类用于报告格式良好的错误以及不可预料的处理条件。
| 字段摘要 | |
|---|---|
protected Location |
location
|
protected Throwable |
nested
|
| 构造方法摘要 | |
|---|---|
XMLStreamException()
默认构造方法 |
|
XMLStreamException(String msg)
构造具有关联消息的异常。 |
|
XMLStreamException(String msg,
Location location)
构造具有关联消息、异常和位置的异常。 |
|
XMLStreamException(String msg,
Location location,
Throwable th)
构造具有关联消息、异常和位置的异常。 |
|
XMLStreamException(String msg,
Throwable th)
构造具有关联消息和异常的异常 |
|
XMLStreamException(Throwable th)
构造具有关联异常的异常 |
|
| 方法摘要 | |
|---|---|
Location |
getLocation()
获取异常的位置 |
Throwable |
getNestedException()
获取嵌套异常。 |
| 从类 java.lang.Throwable 继承的方法 |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
protected Throwable nested
protected Location location
| 构造方法详细信息 |
|---|
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 - 错误的位置
public XMLStreamException(String msg,
Location location)
msg - 要报告的消息location - 错误的位置| 方法详细信息 |
|---|
public Throwable getNestedException()
public Location getLocation()
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。