- All Implemented Interfaces:
- javax.ws.rs.ext.ExceptionMapper<RuntimeException>
@Provider
@Produces(value={"application/json","application/xml","text/plain"})
public class RuntimeExceptionMapper
extends Object
implements javax.ws.rs.ext.ExceptionMapper<RuntimeException>
Translate Runtime exceptions to HTTP response
- Author:
- Phillip Kruger (phillip.kruger@phillip-kruger.com)
This mapper use MicroProfile Config to look for exceptionmapper.some.exception.class to find the HTTP Response Code to use
If it can not find any mapper, it will fallback to:
500 Internal Server Error - A generic error message, given when an unexpected condition was encountered and no more specific message is suitable