public class CommonException extends Exception implements Messageable
SystemException indicates programming bugs, while CommonException indicates exceptional cases.
SystemException,
Serialized FormMessageConst.Aide, MessageConst.BundleInfo| Modifier and Type | Field and Description |
|---|---|
protected int |
_code |
NULL_CODE| Constructor and Description |
|---|
CommonException() |
CommonException(int code) |
CommonException(int code,
Object fmtArg) |
CommonException(int code,
Object[] fmtArgs) |
CommonException(int code,
Object[] fmtArgs,
Throwable cause)
Constructs an CommonException by use of an error code.
|
CommonException(int code,
Object fmtArg,
Throwable cause) |
CommonException(int code,
Throwable cause) |
CommonException(String msg) |
CommonException(String msg,
Throwable cause)
Constructs an CommonException by specifying message directly.
|
CommonException(Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCode()
Gets the message code.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic CommonException(String msg, Throwable cause)
public CommonException(String msg)
public CommonException(Throwable cause)
public CommonException()
public CommonException(int code,
Object[] fmtArgs,
Throwable cause)
code - the error codefmtArgs - the format argumentscause - the chained throwable objectpublic CommonException(int code,
Object[] fmtArgs)
public CommonException(int code,
Object fmtArg)
public CommonException(int code,
Throwable cause)
public CommonException(int code)
public final int getCode()
MessageablegetCode in interface MessageableCopyright © 2018. All rights reserved.