Package io.dropwizard.jersey.optional
Class EmptyOptionalExceptionMapper
- java.lang.Object
-
- io.dropwizard.jersey.optional.EmptyOptionalExceptionMapper
-
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<EmptyOptionalException>
public class EmptyOptionalExceptionMapper extends Object implements javax.ws.rs.ext.ExceptionMapper<EmptyOptionalException>
The default response when an empty optional is returned, is to respond with a 404 NOT FOUND response.
-
-
Constructor Summary
Constructors Constructor Description EmptyOptionalExceptionMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
toResponse(EmptyOptionalException exception)
-
-
-
Method Detail
-
toResponse
public javax.ws.rs.core.Response toResponse(EmptyOptionalException exception)
- Specified by:
toResponse
in interfacejavax.ws.rs.ext.ExceptionMapper<EmptyOptionalException>
-
-