Class DefaultExceptionMapper
java.lang.Object
dev.getelements.elements.sdk.jakarta.rs.DefaultExceptionMapper
- All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<Exception>
@Provider
public class DefaultExceptionMapper
extends Object
implements jakarta.ws.rs.ext.ExceptionMapper<Exception>
Created by patricktwohig on 4/10/15.
-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final jakarta.ws.rs.core.Response.Status
getStatusForCode
(Object code) jakarta.ws.rs.core.Response
toResponse
(Exception exception)
-
Field Details
-
HTTP_STATUS_MAP
-
-
Constructor Details
-
DefaultExceptionMapper
public DefaultExceptionMapper()
-
-
Method Details
-
getStatusForCode
-
toResponse
- Specified by:
toResponse
in interfacejakarta.ws.rs.ext.ExceptionMapper<Exception>
-