java.io.Serializable
public class CastorException
extends java.lang.Exception
Constructor | Description |
---|---|
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.
|
Modifier and Type | Method | Description |
---|---|---|
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
|
public CastorException()
public CastorException(java.lang.String message)
message
- the message for this Exceptionpublic CastorException(int errorCode)
errorCode
- the error code for this Exceptionpublic CastorException(java.lang.String message, int errorCode)
message
- the detail message for this exceptionerrorCode
- the error code for this Exceptionpublic int getErrorCode()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public void setErrorCode(int errorCode)
errorCode
- the error codepublic void setMessage(java.lang.String message)
message
- the message for this ExceptionIntalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com