XMLStreamException (Java EE 5)

Java EE API


javax.xml.stream Class XMLStreamException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.xml.stream.XMLStreamException
All Implemented Interfaces:
Serializable

public class XMLStreamException
extends Exception

Extends: Throwable > Exception

用于不可预料处理错误的基本异常。此异常类用于报告格式良好的错误以及不可预料的处理条件。
英文文档:

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
protected  Throwable
 
Constructor Summary
 
Method Summary
 Location
 Throwable
 
Methods inherited from class java.lang.Throwable
 
Methods inherited from class java.lang.Object
 

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 exception
msg - 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 exception
msg - the message to report
location - 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 report
location - 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


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!