Class NullExceptionMapper
java.lang.Object
uk.ac.manchester.spinnaker.nmpi.rest.utils.NullExceptionMapper
- All Implemented Interfaces:
jakarta.ws.rs.ext.ExceptionMapper<NullPointerException>
@Provider
public class NullExceptionMapper
extends Object
implements jakarta.ws.rs.ext.ExceptionMapper<NullPointerException>
Convert NPEs into complaints about their most likely causes, bad inputs.
- Author:
- Donal Fellows
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Response
toResponse
(NullPointerException exception)
-
Constructor Details
-
NullExceptionMapper
public NullExceptionMapper()
-
-
Method Details
-
toResponse
- Specified by:
toResponse
in interfacejakarta.ws.rs.ext.ExceptionMapper<NullPointerException>
-