@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)
ExceptionMapperResult state.record in interface ExceptionMapperexception - The exception to store.public ExceptionRecorder<Result> findByException(Exception e)
ExceptionMapperfindByException in interface ExceptionMappere - The exception to find.Copyright © 2014 Caelum. All rights reserved.