Class EmptyOptionalExceptionMapper

java.lang.Object
io.dropwizard.jersey.optional.EmptyOptionalExceptionMapper
All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<EmptyOptionalException>

public class EmptyOptionalExceptionMapper extends Object implements jakarta.ws.rs.ext.ExceptionMapper<EmptyOptionalException>
The default response when an empty optional is returned, is to respond with a 404 NOT FOUND response.
  • Constructor Details

    • EmptyOptionalExceptionMapper

      public EmptyOptionalExceptionMapper()
  • Method Details