Class ResourceNotFoundExceptionMapper
java.lang.Object
ch.tocco.nice2.rest.core.spi.error.ResourceNotFoundExceptionMapper
- All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<ResourceNotFoundException>
@Component
public class ResourceNotFoundExceptionMapper
extends Object
implements jakarta.ws.rs.ext.ExceptionMapper<ResourceNotFoundException>
Maps
ResourceNotFoundExceptions
to response status 404.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
toResponse
(ResourceNotFoundException exception)
-
Constructor Details
-
ResourceNotFoundExceptionMapper
public ResourceNotFoundExceptionMapper()
-
-
Method Details
-
toResponse
- Specified by:
toResponse
in interfacejakarta.ws.rs.ext.ExceptionMapper<ResourceNotFoundException>
-