FileDocCategorySizeDatePackage
XMLStreamException.javaAPI DocJava SE 6 API2516Tue Jun 10 00:27:10 BST 2008javax.xml.stream

XMLStreamException

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.
version
1.0
author
Copyright (c) 2003 by BEA Systems. All Rights Reserved.
since
1.6

Fields Summary
protected Throwable
nested
protected Location
location
Constructors Summary
public XMLStreamException()
Default constructor

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

param
msg the message to report

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

param
th a nested exception

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

param
th a nested exception
param
msg the message to report

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

param
th a nested exception
param
msg the message to report
param
location the location of the error

    super("ParseError at [row,col]:["+location.getLineNumber()+","+
          location.getColumnNumber()+"]\n"+
          "Message: "+msg);
    nested = th;
    this.location = location;
  
public XMLStreamException(String msg, Location location)
Construct an exception with the assocated message, exception and location.

param
msg the message to report
param
location the location of the error

    super("ParseError at [row,col]:["+location.getLineNumber()+","+
          location.getColumnNumber()+"]\n"+
          "Message: "+msg);
    this.location = location;
  
Methods Summary
public javax.xml.stream.LocationgetLocation()
Gets the location of the exception

return
the location of the exception, may be null if none is available

    return location;
  
public java.lang.ThrowablegetNestedException()
Gets the nested exception.

return
Nested exception

    return nested;