Package com.tailf.dp
Class DpCallbackExtendedException
Object
Throwable
Exception
com.tailf.conf.ConfException
com.tailf.dp.DpException
com.tailf.dp.DpCallbackException
com.tailf.dp.DpCallbackExtendedException
- All Implemented Interfaces:
Serializable
Extended errorcode Exceptions thrown from inside callbacks to
identify problems.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
int
-
Constructor Summary
ConstructorDescriptionDpCallbackExtendedException
(int extendedErrorCode, ConfNamespace appNS, String appTag, ConfException ex) DpCallbackExtendedException
(int extendedErrorCode, ConfNamespace appNS, String appTag, String fmt, Object... arguments) DpCallbackExtendedException
(int extendedErrorCode, String msg) -
Method Summary
Modifier and TypeMethodDescriptiongetAppNS()
Get string representation of this exception error code.static ConfException
mk
(int extendedErrorCode, ConfNamespace appNS, String appTag, ConfResponse r) Deprecated.Methods inherited from class com.tailf.dp.DpException
mk
Methods inherited from class com.tailf.conf.ConfException
getErrorCode, getOpaque, mk
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
ERRCODE_IN_USE
public static final int ERRCODE_IN_USE- See Also:
-
ERRCODE_RESOURCE_DENIED
public static final int ERRCODE_RESOURCE_DENIED- See Also:
-
ERRCODE_INCONSISTENT_VALUE
public static final int ERRCODE_INCONSISTENT_VALUE- See Also:
-
ERRCODE_ACCESS_DENIED
public static final int ERRCODE_ACCESS_DENIED- See Also:
-
ERRCODE_APPLICATION
public static final int ERRCODE_APPLICATION- See Also:
-
ERRCODE_APPLICATION_INTERNAL
public static final int ERRCODE_APPLICATION_INTERNAL- See Also:
-
ERRCODE_DATA_MISSING
public static final int ERRCODE_DATA_MISSING- See Also:
-
ERRCODE_INTERRUPT
public static final int ERRCODE_INTERRUPT- See Also:
-
extendedErrorCode
public int extendedErrorCode
-
-
Constructor Details
-
DpCallbackExtendedException
- Parameters:
extendedErrorCode
- - One ofERRCODE_IN_USE
,ERRCODE_RESOURCE_DENIED
,ERRCODE_INCONSISTENT_VALUE
,ERRCODE_ACCESS_DENIED
,ERRCODE_DATA_MISSING
,ERRCODE_INTERRUPT
,ERRCODE_APPLICATION
orERRCODE_APPLICATION_INTERNAL
msg
- - informative text describing this exception
-
DpCallbackExtendedException
public DpCallbackExtendedException(int extendedErrorCode, ConfNamespace appNS, String appTag, String fmt, Object... arguments) - Parameters:
extendedErrorCode
- - One ofERRCODE_IN_USE
,ERRCODE_RESOURCE_DENIED
,ERRCODE_INCONSISTENT_VALUE
,ERRCODE_ACCESS_DENIED
,ERRCODE_DATA_MISSING
,ERRCODE_INTERRUPT
,ERRCODE_APPLICATION
orERRCODE_APPLICATION_INTERNAL
appNS
- - not implemented, should be nullappTag
- - not implemented, should be nullfmt
- - informative text describing this exceptionarguments
- - arguments to be substituted in fmt
-
DpCallbackExtendedException
public DpCallbackExtendedException(int extendedErrorCode, ConfNamespace appNS, String appTag, ConfException ex) - Parameters:
extendedErrorCode
- - One ofERRCODE_IN_USE
,ERRCODE_RESOURCE_DENIED
,ERRCODE_INCONSISTENT_VALUE
,ERRCODE_ACCESS_DENIED
,ERRCODE_DATA_MISSING
,ERRCODE_INTERRUPT
,ERRCODE_APPLICATION
orERRCODE_APPLICATION_INTERNAL
appNS
- - not implemented, should be nullappTag
- - not implemented, should be nullex
- - cause exception
-
-
Method Details
-
mk
@Deprecated public static ConfException mk(int extendedErrorCode, ConfNamespace appNS, String appTag, ConfResponse r) Deprecated.Do not use this method, it expects an internal object as argument. -
getAppNS
- Returns:
- ConfNamespace for this extended exception
-
getAppTag
- Returns:
- appTag for the extended exception
-
getExtendedErrorCodeString
Get string representation of this exception error code.- Returns:
- String representation of the errorcode for this extended exception
-