public interface ExceptionMapper
This class is a part of Exception Handling Feature.
ExceptionRecorder
,
ExceptionRecorderParameter
,
DefaultExceptionMapper
,
ExceptionHandlerInterceptor
Modifier and Type | Method and Description |
---|---|
ExceptionRecorder<Result> |
findByException(java.lang.Exception exception)
Finds an
ExceptionRecorder by an Exception . |
Result |
record(java.lang.Class<? extends java.lang.Exception> exception)
Store the exception and return a proxy with
Result state. |
Result record(java.lang.Class<? extends java.lang.Exception> exception)
Result
state.exception
- The exception to store.java.lang.NullPointerException
- if the exception is null.ExceptionRecorder<Result> findByException(java.lang.Exception exception)
exception
- The exception to find.Copyright © 2013 Caelum. All Rights Reserved.