Class DefaultExceptionMapper
- java.lang.Object
-
- de.quantummaid.httpmaid.exceptions.DefaultExceptionMapper
-
- All Implemented Interfaces:
ExceptionMapper<Throwable>
public final class DefaultExceptionMapper extends Object implements ExceptionMapper<Throwable>
AExceptionMapperthat will map an exception to an with an empty body and the status code 500 (Internal Server Error). It will log the stack trace of the exception.
-
-
Constructor Summary
Constructors Constructor Description DefaultExceptionMapper()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidmap(Throwable exception, MetaData metaData)static ExceptionMapper<Throwable>theDefaultExceptionMapper()
-
-
-
Method Detail
-
theDefaultExceptionMapper
public static ExceptionMapper<Throwable> theDefaultExceptionMapper()
-
map
public void map(Throwable exception, MetaData metaData)
- Specified by:
mapin interfaceExceptionMapper<Throwable>
-
-