@Provider
public class ExceptionEntityProvider
extends java.lang.Object
implements javax.ws.rs.ext.ExceptionMapper<java.lang.Throwable>
Throwable
.Constructor and Description |
---|
ExceptionEntityProvider() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
toResponse(java.lang.Throwable throwable)
This method creates a HTTP response for the exception.
|
public javax.ws.rs.core.Response toResponse(java.lang.Throwable throwable)
toResponse
in interface javax.ws.rs.ext.ExceptionMapper<java.lang.Throwable>
throwable
- the exception to convert to a HTTP response.