|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.xml.stream Class XMLStreamException
java.lang.Object java.lang.Throwable java.lang.Exception javax.xml.stream.XMLStreamException
- All Implemented Interfaces:
- Serializable
public class XMLStreamException
- extends Exception
Extends:
Throwable > Exception
用于不可预料处理错误的基本异常。此异常类用于报告格式良好的错误以及不可预料的处理条件。
version | 1.0 |
The base exception for unexpected processing errors. This Exception class is used to report well-formedness errors as well as unexpected processing conditions.
- Version:
- 1.0
- Author:
- Copyright (c) 2003 by BEA Systems. All Rights Reserved.
- See Also:
- Serialized Form
Field Summary | |
---|---|
protected Location |
location
|
protected Throwable |
nested
|
Constructor Summary | |
---|---|
XMLStreamException()
Default constructor |
|
XMLStreamException(String msg)
Construct an exception with the assocated message. |
|
XMLStreamException(String msg,
Location location)
Construct an exception with the assocated message, exception and location. |
|
XMLStreamException(String msg,
Location location,
Throwable th)
Construct an exception with the assocated message, exception and location. |
|
XMLStreamException(String msg,
Throwable th)
Construct an exception with the assocated message and exception |
|
XMLStreamException(Throwable th)
Construct an exception with the assocated exception |
Method Summary | |
---|---|
Location |
getLocation()
Gets the location of the exception |
Throwable |
getNestedException()
Gets the nested exception. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
英文文档:
nested
protected Throwable nested
英文文档:
location
protected Location location
Constructor Detail |
---|
public
XMLStreamException()
默认构造方法。
英文文档:
XMLStreamException
public XMLStreamException()
- Default constructor
public
XMLStreamException(String msg)
构造具有关联消息的异常。
msg | 要报告的消息 |
XMLStreamException
public XMLStreamException(String msg)
- Construct an exception with the assocated message.
- Parameters:
msg
- the message to report
public
XMLStreamException(Throwable th)
构造具有关联异常的异常
th | 嵌套的异常 |
XMLStreamException
public XMLStreamException(Throwable th)
- Construct an exception with the assocated exception
- Parameters:
th
- a nested exception
public
XMLStreamException(String msg, Throwable th)
构造具有关联消息和异常的异常
th | 嵌套的异常 |
msg | 要报告的消息 |
XMLStreamException
public XMLStreamException(String msg, Throwable th)
- Construct an exception with the assocated message and exception
- Parameters:
th
- a nested exceptionmsg
- the message to report
public
XMLStreamException(String msg, Location location, Throwable th)
构造具有关联消息、异常和位置的异常。
th | 嵌套的异常 |
msg | 要报告的消息 |
location | 错误的位置 |
XMLStreamException
public XMLStreamException(String msg, Location location, Throwable th)
- Construct an exception with the assocated message, exception and location.
- Parameters:
th
- a nested exceptionmsg
- the message to reportlocation
- the location of the error
public
XMLStreamException(String msg, Location location)
构造具有关联消息、异常和位置的异常。
msg | 要报告的消息 |
location | 错误的位置 |
XMLStreamException
public XMLStreamException(String msg, Location location)
- Construct an exception with the assocated message, exception and location.
- Parameters:
msg
- the message to reportlocation
- the location of the error
Method Detail |
---|
public Throwable
getNestedException()
获取嵌套异常。
return | 嵌套异常 |
getNestedException
public Throwable getNestedException()
- Gets the nested exception.
- Returns:
- Nested exception
public Location
getLocation()
获取异常的位置
return | 异常的位置;如果没有可用位置,则返回 null |
getLocation
public Location getLocation()
- Gets the location of the exception
- Returns:
- the location of the exception, may be null if none is available
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!