public class CdbExtendedException extends CdbException
Modifier and Type | Field and Description |
---|---|
static int |
ERRCODE_ACCESS_DENIED |
static int |
ERRCODE_APPLICATION |
static int |
ERRCODE_APPLICATION_INTERNAL |
static int |
ERRCODE_DATA_MISSING |
static int |
ERRCODE_IN_USE |
static int |
ERRCODE_INCONSISTENT_VALUE |
static int |
ERRCODE_INTERRUPT |
static int |
ERRCODE_RESOURCE_DENIED |
int |
extendedErrorCode |
Constructor and Description |
---|
CdbExtendedException(int extendedErrorCode,
ConfNamespace appNS,
String appTag,
ConfException ex) |
CdbExtendedException(int extendedErrorCode,
ConfNamespace appNS,
String appTag,
String msg) |
CdbExtendedException(int extendedErrorCode,
String msg) |
Modifier and Type | Method and Description |
---|---|
ConfNamespace |
getAppNS() |
String |
getAppTag() |
String |
getExtendedErrorCodeString()
Get string representation of this exception error code.
|
static ConfException |
mk(int extendedErrorCode,
ConfNamespace appNS,
String appTag,
ConfResponse r) |
mk, mk
getErrorCode, getOpaque
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final int ERRCODE_IN_USE
public static final int ERRCODE_RESOURCE_DENIED
public static final int ERRCODE_INCONSISTENT_VALUE
public static final int ERRCODE_ACCESS_DENIED
public static final int ERRCODE_APPLICATION
public static final int ERRCODE_APPLICATION_INTERNAL
public static final int ERRCODE_DATA_MISSING
public static final int ERRCODE_INTERRUPT
public int extendedErrorCode
public CdbExtendedException(int extendedErrorCode, String msg)
extendedErrorCode
- - One of ERRCODE_IN_USE
,
ERRCODE_RESOURCE_DENIED
,
ERRCODE_INCONSISTENT_VALUE
,
ERRCODE_ACCESS_DENIED
,
ERRCODE_DATA_MISSING
,
ERRCODE_INTERRUPT
,
ERRCODE_APPLICATION
or
ERRCODE_APPLICATION_INTERNAL
msg
- - informative text describing this exceptionpublic CdbExtendedException(int extendedErrorCode, ConfNamespace appNS, String appTag, String msg)
extendedErrorCode
- - One of ERRCODE_IN_USE
,
ERRCODE_RESOURCE_DENIED
,
ERRCODE_INCONSISTENT_VALUE
,
ERRCODE_ACCESS_DENIED
,
ERRCODE_DATA_MISSING
,
ERRCODE_INTERRUPT
,
ERRCODE_APPLICATION
or
ERRCODE_APPLICATION_INTERNAL
appNS
- - not implemented, should be nullappTag
- - not implemented, should be nullmsg
- - informative text describing this exceptionpublic CdbExtendedException(int extendedErrorCode, ConfNamespace appNS, String appTag, ConfException ex)
extendedErrorCode
- - One of ERRCODE_IN_USE
,
ERRCODE_RESOURCE_DENIED
,
ERRCODE_INCONSISTENT_VALUE
,
ERRCODE_ACCESS_DENIED
,
ERRCODE_DATA_MISSING
,
ERRCODE_INTERRUPT
,
ERRCODE_APPLICATION
or
ERRCODE_APPLICATION_INTERNAL
appNS
- - not implemented, should be nullappTag
- - not implemented, should be nullex
- - cause exceptionpublic static ConfException mk(int extendedErrorCode, ConfNamespace appNS, String appTag, ConfResponse r)
extendedErrorCode
- - One of ERRCODE_IN_USE
,
ERRCODE_RESOURCE_DENIED
,
ERRCODE_INCONSISTENT_VALUE
,
ERRCODE_ACCESS_DENIED
,
ERRCODE_DATA_MISSING
,
ERRCODE_INTERRUPT
,
ERRCODE_APPLICATION
or
ERRCODE_APPLICATION_INTERNAL
appNS
- - not implemented, should be nullappTag
- - not implemented, should be nullr
- - cause responsepublic ConfNamespace getAppNS()
public String getAppTag()
public String getExtendedErrorCodeString()