public class CastorException extends Exception
| Constructor and 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(String message)
Creates a new CastorException with the given message.
|
CastorException(String message,
int errorCode)
Creates a new CastorException with the given message nested exception.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getErrorCode()
Returns the error code for this Exception, or -1 if no error code exists.
|
String |
getMessage()
Returns the detail message for this Exception
|
void |
setErrorCode(int errorCode)
Sets the error code for this Exception
|
void |
setMessage(String message)
Sets the message for this Exception
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic CastorException()
public CastorException(String message)
message - the message for this Exceptionpublic CastorException(int errorCode)
errorCode - the error code for this Exceptionpublic CastorException(String message, int errorCode)
message - the detail message for this exceptionerrorCode - the error code for this Exceptionpublic int getErrorCode()
public String getMessage()
getMessage in class Throwablepublic void setErrorCode(int errorCode)
errorCode - the error codepublic void setMessage(String message)
message - the message for this ExceptionCopyright © 2016. All rights reserved.