Package org.analogweb
Interface ExceptionMapper
-
- All Superinterfaces:
Module
,MultiModule
- All Known Implementing Classes:
InvalidRequestFormatExceptionMapper
,RequestMethodUnsupportedExceptionMapper
,TypeAssignableFromExceptionMapper
,UnsupportedMediaTypeExceptionMapper
public interface ExceptionMapper extends MultiModule
- Author:
- snowgooseyk
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.analogweb.MultiModule
MultiModule.Filter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isMatch(Throwable throwable)
Object
mapToResult(Throwable throwable)
ConvertThrowable
to handleable result.(like aRenderable
)
-
-
-
Method Detail
-
isMatch
boolean isMatch(Throwable throwable)
- Parameters:
throwable
-Throwable
- Returns:
- true - this
ExceptionMapper
can handleThrowable
.
-
mapToResult
Object mapToResult(Throwable throwable)
ConvertThrowable
to handleable result.(like aRenderable
)- Parameters:
throwable
-Throwable
- Returns:
- handleable result.(like a
Renderable
)
-
-