Class CascadingDeleteDeniedExceptionMapper
java.lang.Object
ch.tocco.nice2.rest.entity.impl.error.CascadingDeleteDeniedExceptionMapper
- All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<DeniedDeleteException>
@Component
public class CascadingDeleteDeniedExceptionMapper
extends Object
implements jakarta.ws.rs.ext.ExceptionMapper<DeniedDeleteException>
This exception mapper is registered on the
DeniedDeleteException
.
The exception is mapped onto a 409 CONFLICT response.-
Constructor Summary
ConstructorDescriptionCascadingDeleteDeniedExceptionMapper
(Context context, QueryBuilderFactory queryBuilderFactory) -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
toResponse
(DeniedDeleteException exception)
-
Constructor Details
-
CascadingDeleteDeniedExceptionMapper
public CascadingDeleteDeniedExceptionMapper(Context context, QueryBuilderFactory queryBuilderFactory)
-
-
Method Details
-
toResponse
- Specified by:
toResponse
in interfacejakarta.ws.rs.ext.ExceptionMapper<DeniedDeleteException>
-