Class RuntimeExceptionMapper
java.lang.Object
ee.jakarta.tck.ws.rs.spec.filter.exception.RuntimeExceptionMapper
- All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<RuntimeException>
@Provider
public class RuntimeExceptionMapper
extends Object
implements jakarta.ws.rs.ext.ExceptionMapper<RuntimeException>
Use RuntimeException as WebApplicationException does not have constructor for
message argument and getMessage does not work then
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
toResponse
(RuntimeException exception)
-
Field Details
-
THROW_AGAIN
- See Also:
-
-
Constructor Details
-
RuntimeExceptionMapper
public RuntimeExceptionMapper()
-
-
Method Details
-
toResponse
- Specified by:
toResponse
in interfacejakarta.ws.rs.ext.ExceptionMapper<RuntimeException>
-