com.smallx.xml.infoset
Class XMLException.Error

java.lang.Object
  extended bycom.smallx.xml.infoset.XMLException.Error
Enclosing class:
XMLException

public static class XMLException.Error
extends java.lang.Object

A data structure that encapsulates an error.


Constructor Summary
XMLException.Error(java.lang.String message, Item location)
          Constucts an error with a location.
XMLException.Error(java.lang.String message, Item location, java.lang.Throwable cause)
          Constructs an error with a location and cause.
 
Method Summary
 java.lang.Throwable getCause()
          Returns the cause associated with this error, if any.
 Item getLocation()
          Returns the location associated with this error.
 java.lang.String getMessage()
          Returns the message associated with this error.
 java.lang.String toString()
          Returns a string representation of the error.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XMLException.Error

public XMLException.Error(java.lang.String message,
                          Item location)
Constucts an error with a location.

Parameters:
message - A textual message for the error.
location - The node associated with the error.

XMLException.Error

public XMLException.Error(java.lang.String message,
                          Item location,
                          java.lang.Throwable cause)
Constructs an error with a location and cause.

Parameters:
message - A textual message for the error.
location - The node associated with the error.
cause - An exception cause for the error.
Method Detail

getMessage

public java.lang.String getMessage()
Returns the message associated with this error.


getLocation

public Item getLocation()
Returns the location associated with this error.


getCause

public java.lang.Throwable getCause()
Returns the cause associated with this error, if any.


toString

public java.lang.String toString()
Returns a string representation of the error.