org.exolab.castor.xml
Class CastorException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.exolab.castor.xml.CastorException
All Implemented Interfaces:
java.io.Serializable

public class CastorException
extends java.lang.Exception

The base exception for Castor (or at least Castor XML)

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

Constructor Summary
CastorException()
          Creates a new CastorException with no message, or nested Exception
CastorException(int errorCode)
          Creates a new CastorException with the given nested exception.
CastorException(java.lang.String message)
          Creates a new CastorException with the given message.
CastorException(java.lang.String message, int errorCode)
          Creates a new CastorException with the given message nested exception.
 
Method Summary
 int getErrorCode()
          Returns the error code for this Exception, or -1 if no error code exists.
 java.lang.String getMessage()
          Returns the detail message for this Exception
 void setErrorCode(int errorCode)
          Sets the error code for this Exception
 void setMessage(java.lang.String message)
          Sets the message for this Exception
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CastorException

public CastorException()
Creates a new CastorException with no message, or nested Exception


CastorException

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

Parameters:
message - the message for this Exception

CastorException

public CastorException(int errorCode)
Creates a new CastorException with the given nested exception.

Parameters:
errorCode - the error code for this Exception

CastorException

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

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

getErrorCode

public int getErrorCode()
Returns the error code for this Exception, or -1 if no error code exists.

Returns:
the error code for this Exception, or -1 if no error code exists

getMessage

public java.lang.String getMessage()
Returns the detail message for this Exception

Overrides:
getMessage in class java.lang.Throwable
Returns:
the detail message for this Exception

setErrorCode

public void setErrorCode(int errorCode)
Sets the error code for this Exception

Parameters:
errorCode - the error code

setMessage

public void setMessage(java.lang.String message)
Sets the message for this Exception

Parameters:
message - the message for this Exception


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