|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception pt.digitalis.dif.exception.DIFException
public abstract class DIFException
Base class for the framework Exceptions.
Constructor Summary | |
---|---|
DIFException(Exception exception)
Constructs a new DIFException that wraps a Java Exception. |
|
DIFException(String reason)
Constructs a new DIFException from a reason. |
|
DIFException(String reason,
Exception exception)
Constructs a new DIFException from a reason and a Java Exception. |
Method Summary | |
---|---|
void |
addToExceptionContext(String key,
Object value)
Adds a new element to the exception context. |
Map<String,Object> |
getExceptionContext()
Returns the exception context. |
String |
getRenderedExceptionContext()
Renders the exception context. |
void |
setExceptionContext(Map<String,Object> exceptionContext)
Sets the exception context. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DIFException(Exception exception)
exception
- the exception to encapsulate.public DIFException(String reason)
reason
- the exception reason.public DIFException(String reason, Exception exception)
reason
- the exception reason.exception
- the exception to encapsulate.Method Detail |
---|
public void addToExceptionContext(String key, Object value)
IContextException
addToExceptionContext
in interface IContextException
key
- the element's keyvalue
- the element's valueIContextException.addToExceptionContext(String, Object)
public Map<String,Object> getExceptionContext()
IContextException
getExceptionContext
in interface IContextException
IContextException.getExceptionContext()
public String getRenderedExceptionContext()
IContextException
getRenderedExceptionContext
in interface IContextException
IContextException.getRenderedExceptionContext()
public void setExceptionContext(Map<String,Object> exceptionContext)
IContextException
setExceptionContext
in interface IContextException
exceptionContext
- a pre-built exception contextIContextException.setExceptionContext(Map)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |