Class HttpStatusExceptionHandler
- java.lang.Object
-
- org.guvnor.ala.services.exceptions.HttpStatusExceptionHandler
-
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<BusinessException>
@Provider public class HttpStatusExceptionHandler extends Object implements javax.ws.rs.ext.ExceptionMapper<BusinessException>
Provider for our HTTP Exceptions to use BusinessExceptions to be thrown to the client side if something bad happens on the server side
-
-
Constructor Summary
Constructors Constructor Description HttpStatusExceptionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsetoResponse(BusinessException exception)
-
-
-
Method Detail
-
toResponse
public javax.ws.rs.core.Response toResponse(BusinessException exception)
- Specified by:
toResponsein interfacejavax.ws.rs.ext.ExceptionMapper<BusinessException>
-
-