org.exolab.castor.xml

Class CastorException

public class CastorException extends Exception

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

Version: $Revision: 5951 $ $Date: 2006-04-25 15:08:23 -0600 (Tue, 25 Apr 2006) $

Author: Keith Visco

Constructor Summary
CastorException()
Creates a new CastorException with no message, or nested Exception
CastorException(String message)
Creates a new CastorException with the given message.
CastorException(int errorCode)
Creates a new CastorException with the given nested exception.
CastorException(String message, int errorCode)
Creates a new CastorException with the given message nested exception.
Method Summary
intgetErrorCode()
Returns the error code for this Exception, or -1 if no error code exists.
StringgetMessage()
Returns the detail message for this Exception
voidsetErrorCode(int errorCode)
Sets the error code for this Exception
voidsetMessage(String message)
Sets the message for this Exception

Constructor Detail

CastorException

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

CastorException

public CastorException(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(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 String getMessage()
Returns the detail message for this Exception

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(String message)
Sets the message for this Exception

Parameters: message the message for this Exception

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