|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.databene.commons.ExceptionMapper
public final class ExceptionMapper
Wraps checked exceptions as unchecked exceptions of type ConfigurationError.
Created: 02.07.2006 07:44:23
| Constructor Summary | |
|---|---|
ExceptionMapper()
|
|
| Method Summary | |
|---|---|
static ConfigurationError |
configurationException(java.lang.Exception cause,
java.lang.Class<?> type)
Maps class reflection related exceptions to ConfigurationExceptions |
static ConfigurationError |
configurationException(java.lang.Exception cause,
java.lang.reflect.Constructor<?> constructor)
Maps method reflection related exceptions to ConfigurationExceptions |
static ConfigurationError |
configurationException(java.lang.Exception cause,
java.lang.reflect.Field field)
Maps attribute reflection related exceptions to ConfigurationExceptions |
static ConfigurationError |
configurationException(java.lang.Exception cause,
java.lang.reflect.Method method)
Maps method reflection related exceptions to ConfigurationExceptions |
static ConfigurationError |
configurationException(java.lang.Exception cause,
java.lang.String name)
Maps exceptions to ConfigurationExceptions |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExceptionMapper()
| Method Detail |
|---|
public static ConfigurationError configurationException(java.lang.Exception cause,
java.lang.reflect.Constructor<?> constructor)
cause - the exception that occurredconstructor - the constructor that was involved in the cause
public static ConfigurationError configurationException(java.lang.Exception cause,
java.lang.reflect.Method method)
cause - the exception that occurredmethod - the method that was involved in the cause
public static ConfigurationError configurationException(java.lang.Exception cause,
java.lang.Class<?> type)
cause - the exception that occurredtype - the class that was involved in the cause
public static ConfigurationError configurationException(java.lang.Exception cause,
java.lang.reflect.Field field)
cause - the exception that occurredfield - the field that was involved in the cause
public static ConfigurationError configurationException(java.lang.Exception cause,
java.lang.String name)
cause - the exception that occurredname - a characteristic identifier that was involved in the cause
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||