Class NotFoundExceptionMapper
java.lang.Object
org.glassfish.jersey.examples.jersey_ejb.exceptions.NotFoundExceptionMapper
- All Implemented Interfaces:
ExceptionMapper<CustomNotFoundException>
@Provider
public class NotFoundExceptionMapper
extends Object
implements ExceptionMapper<CustomNotFoundException>
An exception mapper to return 404 responses when a
CustomNotFoundException is thrown.- Author:
- Pavel Bucek
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
NotFoundExceptionMapper
public NotFoundExceptionMapper()
-
-
Method Details
-
toResponse
- Specified by:
toResponsein interfaceExceptionMapper<CustomNotFoundException>
-