Package org.apache.ofbiz.ws.rs.spi.impl
Class GenericServiceExceptionMapper
java.lang.Object
org.apache.ofbiz.ws.rs.spi.AbstractExceptionMapper
org.apache.ofbiz.ws.rs.spi.impl.GenericServiceExceptionMapper
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<GenericServiceException>
@Provider
public class GenericServiceExceptionMapper
extends AbstractExceptionMapper
implements javax.ws.rs.ext.ExceptionMapper<GenericServiceException>
Exception Mapper for GenericServiceException. Catches GenericServiceException and handles it and prepares appropriate response.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
To response response.Methods inherited from class org.apache.ofbiz.ws.rs.spi.AbstractExceptionMapper
errorResponse, errorResponse, getStatusType
-
Constructor Details
-
GenericServiceExceptionMapper
public GenericServiceExceptionMapper()
-
-
Method Details
-
toResponse
To response response.- Specified by:
toResponse
in interfacejavax.ws.rs.ext.ExceptionMapper<GenericServiceException>
- Parameters:
gse
- GenericServiceException- Returns:
- Response
-