@Provider
public class DefaultExceptionMapper
extends java.lang.Object
implements javax.ws.rs.ext.ExceptionMapper<java.lang.Throwable>
| Constructor and Description | 
|---|
| DefaultExceptionMapper() | 
| Modifier and Type | Method and Description | 
|---|---|
| javax.ws.rs.core.Response | toResponse(java.lang.Throwable throwable1)Maps a throwable to a response. | 
public javax.ws.rs.core.Response toResponse(java.lang.Throwable throwable1)
WebApplicationException.getResponse() if the exception is an instance of
 WebApplicationException. Otherwise maps known exceptions to responses. If no
 mapping is found a Response.Status.INTERNAL_SERVER_ERROR is assumed.toResponse in interface javax.ws.rs.ext.ExceptionMapper<java.lang.Throwable>