|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ccc.api.exceptions.CCException
public class CCException
An exception representing the failure of a CCC command.
Field Summary | |
---|---|
static java.lang.String |
MESSAGE
MESSAGE : String. |
Constructor Summary | |
---|---|
|
CCException()
Constructor. |
|
CCException(java.lang.String message)
Constructor. |
|
CCException(java.lang.String message,
java.lang.Throwable cause)
Constructor. |
protected |
CCException(java.lang.String message,
java.lang.Throwable cause,
java.util.Map<java.lang.String,java.lang.String> params)
Constructor. |
Method Summary | |
---|---|
protected void |
addParam(java.lang.String key,
java.lang.String value)
Add a parameter to the exception. |
Failure |
getFailure()
Accessor. |
java.lang.String |
getMessage()
|
protected java.lang.String |
getParam(java.lang.String key)
Accessor. |
void |
setId(java.util.UUID id)
Mutator. |
void |
setParams(java.util.Map<java.lang.String,java.lang.String> params)
Mutator. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MESSAGE
Constructor Detail |
---|
public CCException()
protected CCException(java.lang.String message, java.lang.Throwable cause, java.util.Map<java.lang.String,java.lang.String> params)
message
- Description of the exception.cause
- Cause of the exception.params
- Further details describing the exception.public CCException(java.lang.String message)
message
- Description of the exception.public CCException(java.lang.String message, java.lang.Throwable cause)
message
- Description of the exception.cause
- Cause of the exception.Method Detail |
---|
public Failure getFailure()
protected java.lang.String getParam(java.lang.String key)
key
- The parameter's key.
public void setId(java.util.UUID id)
id
- The id to set.public void setParams(java.util.Map<java.lang.String,java.lang.String> params)
params
- The parameters to set.public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
protected void addParam(java.lang.String key, java.lang.String value)
key
- The paramater's key.value
- The parameter's value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |