public class DandelionException extends RuntimeException
Main exception of the Dandelion framework.
Constructor and Description |
---|
DandelionException(String message) |
DandelionException(String message,
Throwable cause) |
DandelionException(Throwable cause) |
Modifier and Type | Method and Description |
---|---|
<T> T |
get(String field)
Get the value of stored data by his field
|
DandelionException |
set(String field,
Object value)
Add a relevant data (field/value) for this exception
|
static DandelionException |
wrap(Throwable exception) |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public DandelionException(String message)
public DandelionException(Throwable cause)
public DandelionException set(String field, Object value)
field
- field of this relevant datavalue
- value of this relevant datapublic <T> T get(String field)
T
- type of this valuefield
- field of stored datapublic static DandelionException wrap(Throwable exception)
Copyright © 2013-2015 Dandelion Project. All Rights Reserved.