Class ParsingExceptionMapper

java.lang.Object
io.airlift.jaxrs.ParsingExceptionMapper
All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<ParsingException>

@Provider public class ParsingExceptionMapper extends Object implements javax.ws.rs.ext.ExceptionMapper<ParsingException>
Maps ParsingExceptions to a 400 response code.
  • Constructor Details

    • ParsingExceptionMapper

      public ParsingExceptionMapper()
  • Method Details

    • toResponse

      public javax.ws.rs.core.Response toResponse(ParsingException e)
      Specified by:
      toResponse in interface javax.ws.rs.ext.ExceptionMapper<ParsingException>