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 Summary
Constructors -
Method Summary
-
Constructor Details
-
RuntimeExceptionMapper
public RuntimeExceptionMapper(@Context javax.ws.rs.core.UriInfo ui)
-
-
Method Details
-
toResponse
- Specified by:
toResponse
in interfacejavax.ws.rs.ext.ExceptionMapper<RuntimeException>
-