public class CommonException extends java.lang.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,
java.lang.Object fmtArg) |
CommonException(int code,
java.lang.Object[] fmtArgs) |
CommonException(int code,
java.lang.Object[] fmtArgs,
java.lang.Throwable cause)
Constructs an CommonException by use of an error code.
|
CommonException(int code,
java.lang.Object fmtArg,
java.lang.Throwable cause) |
CommonException(int code,
java.lang.Throwable cause) |
CommonException(java.lang.String msg) |
CommonException(java.lang.String msg,
java.lang.Throwable cause)
Constructs an CommonException by specifying message directly.
|
CommonException(java.lang.Throwable cause) |
Modifier and Type | Method and Description |
---|---|
int |
getCode()
Gets the message code.
|
public CommonException(java.lang.String msg, java.lang.Throwable cause)
public CommonException(java.lang.String msg)
public CommonException(java.lang.Throwable cause)
public CommonException()
public CommonException(int code, java.lang.Object[] fmtArgs, java.lang.Throwable cause)
code
- the error codefmtArgs
- the format argumentscause
- the chained throwable objectpublic CommonException(int code, java.lang.Object fmtArg, java.lang.Throwable cause)
public CommonException(int code, java.lang.Object[] fmtArgs)
public CommonException(int code, java.lang.Object fmtArg)
public CommonException(int code, java.lang.Throwable cause)
public CommonException(int code)
public final int getCode()
Messageable
getCode
in interface Messageable
Copyright © 2005-2018 Potix Corporation. All Rights Reserved.