Class ServiceBlacklistedExceptionMapper
java.lang.Object
com.ammann.servicemanager.exception.ServiceBlacklistedExceptionMapper
- All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<ServiceBlacklistedException>
@Provider
public class ServiceBlacklistedExceptionMapper
extends Object
implements jakarta.ws.rs.ext.ExceptionMapper<ServiceBlacklistedException>
JAX-RS exception mapper that converts
ServiceBlacklistedException into an
HTTP 403 Forbidden response with a JSON error body containing the error label,
message, and the offending container identifier.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponsetoResponse(ServiceBlacklistedException exception)
-
Constructor Details
-
ServiceBlacklistedExceptionMapper
public ServiceBlacklistedExceptionMapper()
-
-
Method Details
-
toResponse
- Specified by:
toResponsein interfacejakarta.ws.rs.ext.ExceptionMapper<ServiceBlacklistedException>
-