Interface ValueFaultHandler
public interface ValueFaultHandler
Interface in order to deal with value exceptions
- Since:
- 15.03.11
- Author:
- roland
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classException used to indicate that an attribute should be skipped -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ValueFaultHandlerFault handler which returns a simple string representation of the exceptionstatic final ValueFaultHandlerFault handler for simply rethrowing a given exception. -
Method Summary
Modifier and TypeMethodDescriptionhandleException(T exception) Handle the given exception and return an object which can be used as a replacement for the real value
-
Field Details
-
IGNORING_VALUE_FAULT_HANDLER
Fault handler which returns a simple string representation of the exception -
THROWING_VALUE_FAULT_HANDLER
Fault handler for simply rethrowing a given exception.
-
-
Method Details
-
handleException
Handle the given exception and return an object which can be used as a replacement for the real value- Parameters:
exception- exception to handle- Returns:
- replacement value or the exception is rethrown if this handler doesnt handle this exception
- Throws:
T- if the handler does not handle the exception
-