public class cMsgException
extends java.lang.Exception
Constructor and Description |
---|
cMsgException()
Constructs a new exception with
null as its detail message. |
cMsgException(java.lang.String message)
Constructs a new exception with the specified detail message.
|
cMsgException(java.lang.String message,
int returnCode)
Constructs a new exception with the specified detail message and a return code.
|
cMsgException(java.lang.String message,
java.lang.Throwable cause)
Constructs a new exception with the specified detail message and
cause.
|
cMsgException(java.lang.Throwable cause)
Constructs a new exception with the specified cause and a detail
message of (cause==null ? null : cause.toString()) (which
typically contains the class and detail message of cause).
|
Modifier and Type | Method and Description |
---|---|
int |
getReturnCode()
Get the return code specified in the constructor
cMsgException(String, int) . |
void |
setReturnCode(int returnCode)
Set the return code.
|
public cMsgException(java.lang.String message, int returnCode)
Throwable.initCause(java.lang.Throwable)
.message
- the detail message. The detail message is saved for
later retrieval by the Throwable.getMessage()
method.returnCode
- send an integer along with the exceptionpublic cMsgException(java.lang.String message, java.lang.Throwable cause)
Note that the detail message associated with
cause
is not automatically incorporated in
this exception's detail message.
message
- the detail message (which is saved for later retrieval
by the Throwable.getMessage()
method).cause
- the cause (which is saved for later retrieval by the
Throwable.getCause()
method). (A null value is
permitted, and indicates that the cause is nonexistent or
unknown.)public cMsgException(java.lang.Throwable cause)
cause
- the cause (which is saved for later retrieval by the
Throwable.getCause()
method). (A null value is
permitted, and indicates that the cause is nonexistent or
unknown.)public cMsgException(java.lang.String message)
Throwable.initCause(java.lang.Throwable)
.message
- the detail message. The detail message is saved for
later retrieval by the Throwable.getMessage()
method.public cMsgException()
null
as its detail message.
The cause is not initialized, and may subsequently be initialized by a
call to Throwable.initCause(java.lang.Throwable)
.public int getReturnCode()
cMsgException(String, int)
.public void setReturnCode(int returnCode)
returnCode
- return code