public class DefaultExceptionMapper extends java.lang.Object implements ExceptionMapper
ExceptionMapper
.
This class is a part of Exception Handling Feature.
ExceptionRecorder
,
ExceptionRecorderParameter
,
ExceptionMapper
,
ExceptionHandlerInterceptor
Constructor and Description |
---|
DefaultExceptionMapper(Proxifier proxifier) |
Modifier and Type | Method and Description |
---|---|
ExceptionRecorder<Result> |
findByException(java.lang.Exception e)
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. |
public DefaultExceptionMapper(Proxifier proxifier)
public Result record(java.lang.Class<? extends java.lang.Exception> exception)
ExceptionMapper
Result
state.record
in interface ExceptionMapper
exception
- The exception to store.public ExceptionRecorder<Result> findByException(java.lang.Exception e)
ExceptionMapper
findByException
in interface ExceptionMapper
e
- The exception to find.Copyright © 2013 Caelum. All Rights Reserved.