@Provider public class ServiceUnavailableExceptionMapper extends Object implements ExceptionMapper<ServiceUnavailableException>
| Constructor and Description |
|---|
ServiceUnavailableExceptionMapper() |
public Response toResponse(ServiceUnavailableException exception)
ExceptionMapperResponse. Returning
null results in a Response.Status.NO_CONTENT
response. Throwing a runtime exception results in a
Response.Status.INTERNAL_SERVER_ERROR response.toResponse in interface ExceptionMapper<ServiceUnavailableException>exception - the exception to map to a response.Copyright © 2015. All Rights Reserved.