XMLStreamException (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.xml.stream Class XMLStreamException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.xml.stream.XMLStreamException
所有已实现的接口:
Serializable

public class XMLStreamException
extends Exception

The base exception for unexpected processing errors. This Exception class is used to report well-formedness errors as well as unexpected processing conditions.

版本:
1.0
作者:
Copyright (c) 2003 by BEA Systems. All Rights Reserved.
另请参见:
Serialized Form

字段摘要
protected  Location location
           
protected  Throwable nested
           
 
构造器摘要
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
 
方法摘要
 Location getLocation()
          Gets the location of the exception
 Throwable getNestedException()
          Gets the nested exception.
 
类方法继承 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
 

字段详细信息

nested

protected Throwable nested

location

protected Location location
构造器详细信息

XMLStreamException

public XMLStreamException()
Default constructor


XMLStreamException

public XMLStreamException(String msg)
Construct an exception with the assocated message.

参数:
msg - the message to report


XMLStreamException

public XMLStreamException(Throwable th)
Construct an exception with the assocated exception

参数:
th - a nested exception


XMLStreamException

public XMLStreamException(String msg,
                          Throwable th)
Construct an exception with the assocated message and exception

参数:
th - a nested exception
msg - the message to report


XMLStreamException

public XMLStreamException(String msg,
                          Location location,
                          Throwable th)
Construct an exception with the assocated message, exception and location.

参数:
th - a nested exception
msg - the message to report
location - the location of the error


XMLStreamException

public XMLStreamException(String msg,
                          Location location)
Construct an exception with the assocated message, exception and location.

参数:
msg - the message to report
location - the location of the error

方法详细信息

getNestedException

public Throwable getNestedException()
Gets the nested exception.

返回:
Nested exception

getLocation

public Location getLocation()
Gets the location of the exception

返回:
the location of the exception, may be null if none is available

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.