javolution.xml.stream
Class XMLStreamException

Object
  extended by Throwable
      extended by Exception
          extended by XMLStreamException
All Implemented Interfaces:
Serializable

public class XMLStreamException
extends Exception

This class represents the base exception for unexpected processing errors.

Version:
3.8, May 22, 2006
Author:
Jean-Marie Dautelle
See Also:
Serialized Form

Constructor Summary
XMLStreamException()
          Default constructor
XMLStreamException(String msg)
          Constructs an exception with the assocated message.
XMLStreamException(String msg, Location location)
          Constructs an exception with the assocated message, exception and location.
XMLStreamException(String msg, Location location, Throwable nested)
          Constructs an exception with the assocated message, exception and location.
XMLStreamException(String msg, Throwable nested)
          Constructs an exception with the assocated message and exception.
XMLStreamException(Throwable nested)
          Constructs an exception with the assocated nested exception.
 
Method Summary
 Location getLocation()
          Returns the location of the exception.
 Throwable getNestedException()
          Returns the nested exception.
 String toString()
          Returns the textual representation of this exception.
 
Methods inherited from class Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XMLStreamException

public XMLStreamException()
Default constructor


XMLStreamException

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

Parameters:
msg - the message to report.

XMLStreamException

public XMLStreamException(Throwable nested)
Constructs an exception with the assocated nested exception.

Parameters:
nested - the nested exception.

XMLStreamException

public XMLStreamException(String msg,
                          Throwable nested)
Constructs an exception with the assocated message and exception.

Parameters:
msg - the message to report.
nested - the nested exception.

XMLStreamException

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

Parameters:
msg - the message to report.
location - the location.
nested - the nested exception.

XMLStreamException

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

Parameters:
msg - the message to report
location - the location of the error
Method Detail

getNestedException

public Throwable getNestedException()
Returns the nested exception.

Returns:
the nested exception

getLocation

public Location getLocation()
Returns the location of the exception.

Returns:
the location of the exception or null if none is available

toString

public String toString()
Returns the textual representation of this exception.

Overrides:
toString in class Throwable
Returns:
the string representation of the exception.


Copyright © 2005-2012 Javolution. All Rights Reserved.