Class RuntimeExceptionMapper

java.lang.Object
org.apache.zookeeper.server.jersey.resources.RuntimeExceptionMapper
All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<RuntimeException>

@Provider public class RuntimeExceptionMapper extends Object implements javax.ws.rs.ext.ExceptionMapper<RuntimeException>
Map RuntimeException to HTTP status codes
  • Constructor Details

    • RuntimeExceptionMapper

      public RuntimeExceptionMapper(@Context javax.ws.rs.core.UriInfo ui)
  • Method Details

    • toResponse

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