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 aCustomNotFoundExceptionis thrown.- Author:
- Pavel Bucek
-
-
Constructor Summary
Constructors Constructor Description NotFoundExceptionMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponsetoResponse(CustomNotFoundException exception)
-
-
-
Method Detail
-
toResponse
public Response toResponse(CustomNotFoundException exception)
- Specified by:
toResponsein interfaceExceptionMapper<CustomNotFoundException>
-
-