Package org.wso2.msf4j.example.exception
Class CustomerNotFoundMapper
- java.lang.Object
-
- org.wso2.msf4j.example.exception.CustomerNotFoundMapper
-
- All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<CustomerNotFoundException>
public class CustomerNotFoundMapper extends java.lang.Object implements javax.ws.rs.ext.ExceptionMapper<CustomerNotFoundException>
ExceptionMapper which handles CustomerNotFoundException.
-
-
Constructor Summary
Constructors Constructor Description CustomerNotFoundMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.ResponsetoResponse(CustomerNotFoundException ex)
-
-
-
Method Detail
-
toResponse
public javax.ws.rs.core.Response toResponse(CustomerNotFoundException ex)
- Specified by:
toResponsein interfacejavax.ws.rs.ext.ExceptionMapper<CustomerNotFoundException>
-
-