Package org.apache.ofbiz.ws.rs.spi.impl
Class GlobalExceptionMapper
java.lang.Object
org.apache.ofbiz.ws.rs.spi.AbstractExceptionMapper
org.apache.ofbiz.ws.rs.spi.impl.GlobalExceptionMapper
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<Throwable>
@Provider
public class GlobalExceptionMapper
extends AbstractExceptionMapper
implements javax.ws.rs.ext.ExceptionMapper<Throwable>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
toResponse
(Throwable throwable) To response response.Methods inherited from class org.apache.ofbiz.ws.rs.spi.AbstractExceptionMapper
errorResponse, errorResponse, getStatusType
-
Constructor Details
-
GlobalExceptionMapper
public GlobalExceptionMapper()
-
-
Method Details
-
toResponse
To response response.- Specified by:
toResponse
in interfacejavax.ws.rs.ext.ExceptionMapper<Throwable>
- Parameters:
throwable
- the throwable- Returns:
- the response
-