Class PreconditionRequiredExceptionMapper
java.lang.Object
ch.tocco.nice2.rest.core.spi.error.PreconditionRequiredExceptionMapper
- All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<PreconditionRequiredException>
@Component
public class PreconditionRequiredExceptionMapper
extends Object
implements jakarta.ws.rs.ext.ExceptionMapper<PreconditionRequiredException>
This exception mapper is registered on the
PreconditionRequiredException
.
The exception is mapped onto a 428 PRECONDITION REQUIRED response.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
toResponse
(PreconditionRequiredException exception)
-
Constructor Details
-
PreconditionRequiredExceptionMapper
public PreconditionRequiredExceptionMapper()
-
-
Method Details
-
toResponse
- Specified by:
toResponse
in interfacejakarta.ws.rs.ext.ExceptionMapper<PreconditionRequiredException>
-