Interface ExceptionMapper<E extends Throwable>
-
Method Summary
-
Method Details
-
toResponse
Map an exception to aResponse. Returningnullresults in aResponse.Status.NO_CONTENTresponse. Throwing a runtime exception results in aResponse.Status.INTERNAL_SERVER_ERRORresponse- Parameters:
exception- the exception to map to a response- Returns:
- a response mapped from the supplied exception
-