- java.lang.Object
 -  
      
- java.lang.Throwable
 -  
        
- java.lang.Exception
 -  
          
- javax.xml.stream.XMLStreamException
 
 
 
 
-  
       
- All Implemented Interfaces:
 -  
         
Serializable 
public class XMLStreamException extends 异常
基于异常的意外处理错误。 此异常类用于报告良好形式的错误以及意外的处理条件。- 从以下版本开始:
 - 1.6
 - Version:
 - 1.0
 - 另请参见:
 - Serialized Form
 
 
-  
        
       
-  
             
构造方法摘要
构造方法 Constructor 描述 XMLStreamException()默认构造函数XMLStreamException(String msg)使用关联的消息构造异常。XMLStreamException(String msg, Throwable th)使用关联的消息和异常构造异常XMLStreamException(String msg, Location location)使用关联的消息,异常和位置构造异常。XMLStreamException(String msg, Location location, Throwable th)使用关联的消息,异常和位置构造异常。XMLStreamException(Throwable th)构造与异常异常的异常 
-  
             
方法摘要
所有方法 接口方法 具体的方法 Modifier and Type 方法 描述 LocationgetLocation()获取异常的位置ThrowablegetNestedException()获取嵌套的异常。-  
               
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait 
-  
               
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString 
 -  
               
 
 -  
             
 
-  
        
       
-  
             
构造方法详细信息
-  
XMLStreamException
public XMLStreamException()
默认构造函数 
-  
XMLStreamException
public XMLStreamException(String msg)
使用关联的消息构造异常。- 参数
 -  
              
msg- 要报告的消息 
 
-  
XMLStreamException
public XMLStreamException(Throwable th)
构造与异常异常的异常- 参数
 -  
              
th- 嵌套异常 
 
-  
XMLStreamException
public XMLStreamException(String msg, Throwable th)
使用关联的消息和异常构造异常- 参数
 -  
              
th- 嵌套异常 -  
              
msg- 要报告的消息 
 
-  
XMLStreamException
public XMLStreamException(String msg, Location location, Throwable th)
使用关联的消息,异常和位置构造异常。- 参数
 -  
              
th- 嵌套异常 -  
              
msg- 要报告的消息 -  
              
location- 错误的位置 
 
 -  
 
 -