@RequestScoped public class DefaultExceptionMapper extends Object implements ExceptionMapper
ExceptionMapper
.
This class is a part of Exception Handling Feature.
Modifier | Constructor and Description |
---|---|
protected |
DefaultExceptionMapper()
Deprecated.
CDI eyes only
|
|
DefaultExceptionMapper(Proxifier proxifier) |
Modifier and Type | Method and Description |
---|---|
ExceptionRecorder<Result> |
findByException(Exception e)
Finds an
ExceptionRecorder by an Exception . |
Result |
record(Class<? extends Exception> exception)
Store the exception and return a proxy with
Result state. |
protected DefaultExceptionMapper()
@Inject public DefaultExceptionMapper(Proxifier proxifier)
public Result record(Class<? extends Exception> exception)
ExceptionMapper
Result
state.record
in interface ExceptionMapper
exception
- The exception to store.public ExceptionRecorder<Result> findByException(Exception e)
ExceptionMapper
findByException
in interface ExceptionMapper
e
- The exception to find.Copyright © 2014 Caelum. All rights reserved.