public class ExceptionMapperRegistry extends Object
Constructor and Description |
---|
ExceptionMapperRegistry() |
Modifier and Type | Method and Description |
---|---|
<T extends Throwable> |
addExceptionMapper(ExceptionMapper<T> exceptionMapper)
Adds an
ExceptionMapper to the list of mappers. |
<T extends Throwable> |
removeExceptionMapper(ExceptionMapper<T> exceptionMapper)
Removes the given mapper.
|
public <T extends Throwable> void addExceptionMapper(ExceptionMapper<T> exceptionMapper)
ExceptionMapper
to the list of mappers. Existing mappers for the given
exception will be replaced.T
- Type of the exception.exceptionMapper
- The exception mapper.public <T extends Throwable> void removeExceptionMapper(ExceptionMapper<T> exceptionMapper)
T
- Type of the exception.exceptionMapper
- The mapper to remove.Copyright © 2019 Communote team. All rights reserved.