org.exolab.castor.xml
Class XMLException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byorg.exolab.castor.xml.CastorException
              extended byorg.exolab.castor.xml.XMLException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
MarshalException

public class XMLException
extends CastorException

An exception that is used to signal an error that has occured during marshalling or unmarshalling.

Version:
$Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:16 $
Author:
Keith Visco
See Also:
Serialized Form

Constructor Summary
XMLException()
          Creates a new XMLException with no message or nested Exception.
XMLException(java.lang.Exception exception)
          Creates a new XMLException with the given nested exception.
XMLException(java.lang.String message)
          Creates a new XMLException with the given message.
XMLException(java.lang.String message, java.lang.Exception exception)
          Creates a new XMLException with the given message and nested exception.
XMLException(java.lang.String message, java.lang.Exception exception, int errorCode)
          Creates a new XMLException with the given message, nested exception, and errorCode.
XMLException(java.lang.String message, int errorCode)
          Creates a new XMLException with the given message.
 
Method Summary
 java.lang.Exception getException()
          Returns the exception, which in turn caused this Exception to be thrown, or null if nested exception exists.
 void printStackTrace()
           
 void printStackTrace(java.io.PrintStream printer)
           
 void printStackTrace(java.io.PrintWriter printer)
           
 void setLocation(Location location)
          Sets the location information for this Exception
 java.lang.String toString()
          Returns the String representation of this Exception.
 
Methods inherited from class org.exolab.castor.xml.CastorException
getErrorCode, getMessage, setErrorCode, setMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XMLException

public XMLException()
Creates a new XMLException with no message or nested Exception.


XMLException

public XMLException(java.lang.String message)
Creates a new XMLException with the given message.

Parameters:
message - the message for this Exception

XMLException

public XMLException(java.lang.Exception exception)
Creates a new XMLException with the given nested exception.

Parameters:
exception - the nested exception

XMLException

public XMLException(java.lang.String message,
                    int errorCode)
Creates a new XMLException with the given message.

Parameters:
message - the message for this Exception
errorCode - the errorCode for this Exception

XMLException

public XMLException(java.lang.String message,
                    java.lang.Exception exception)
Creates a new XMLException with the given message and nested exception.

Parameters:
message - the detail message for this exception
exception - the nested exception

XMLException

public XMLException(java.lang.String message,
                    java.lang.Exception exception,
                    int errorCode)
Creates a new XMLException with the given message, nested exception, and errorCode.

Parameters:
message - the detail message for this exception
exception - the nested exception
errorCode - the errorCode for this Exception
Method Detail

getException

public java.lang.Exception getException()
Returns the exception, which in turn caused this Exception to be thrown, or null if nested exception exists.

Returns:
the exception, which in turn caused this Exception to be thrown, or null if nested exception exists.

setLocation

public void setLocation(Location location)
Sets the location information for this Exception


toString

public java.lang.String toString()
Returns the String representation of this Exception.

Returns:
the String representation of this Exception.

printStackTrace

public void printStackTrace()

printStackTrace

public void printStackTrace(java.io.PrintWriter printer)

printStackTrace

public void printStackTrace(java.io.PrintStream printer)


Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com