edu.illinois.cs.cogcomp.lbj.coref.util.xml
Class XMLException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by edu.illinois.cs.cogcomp.lbj.coref.util.xml.XMLException
All Implemented Interfaces:
java.io.Serializable

public class XMLException
extends java.lang.Exception

Author:
Eric Bengtson Encapsulates various exceptions that may arise during XML processing.
See Also:
Serialized Form

Field Summary
protected  java.lang.String m_error
           
protected  java.lang.Exception m_nestedException
           
private static long serialVersionUID
           
 
Constructor Summary
XMLException(java.lang.String error)
           
XMLException(java.lang.String error, java.lang.Exception ex)
          Constructor
 
Method Summary
 java.lang.String getMessage()
           
 java.lang.Exception getNestedException()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

m_nestedException

protected java.lang.Exception m_nestedException

m_error

protected java.lang.String m_error
Constructor Detail

XMLException

public XMLException(java.lang.String error,
                    java.lang.Exception ex)
Constructor

Parameters:
error - The relevant error message
ex - The exception to encapsulate

XMLException

public XMLException(java.lang.String error)
Method Detail

getNestedException

public java.lang.Exception getNestedException()
Returns:
The nested exception. null if none given.

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable