Class CustomExceptionMapper
java.lang.Object
org.glassfish.jersey.examples.helloworld.spring.CustomExceptionMapper
- All Implemented Interfaces:
ExceptionMapper<IllegalArgumentException>
@Provider
public class CustomExceptionMapper
extends Object
implements ExceptionMapper<IllegalArgumentException>
Exception mapper to convert
IllegalArgumentException into a textual response.- Author:
- Marko Asplund (marko.asplund at yahoo.com)
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CustomExceptionMapper
public CustomExceptionMapper()
-
-
Method Details
-
toResponse
- Specified by:
toResponsein interfaceExceptionMapper<IllegalArgumentException>
-