Package uk.gov.gchq.gaffer.rest.mapper
Class GafferExceptionMapper
- java.lang.Object
-
- org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
-
- uk.gov.gchq.gaffer.rest.mapper.GafferExceptionMapper
-
@ControllerAdvice public class GafferExceptionMapper extends org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
-
-
Constructor Summary
Constructors Constructor Description GafferExceptionMapper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<?>
handleAllOtherTypesOfException(javax.servlet.http.HttpServletRequest request, Exception e)
org.springframework.http.ResponseEntity<?>
handleGafferRuntimeException(javax.servlet.http.HttpServletRequest request, GafferRuntimeException gre)
org.springframework.http.ResponseEntity<?>
handleGafferWrappedErrorRuntimeException(javax.servlet.http.HttpServletRequest request, GafferWrappedErrorRuntimeException e)
org.springframework.http.ResponseEntity<?>
handleUnauthorisedException(javax.servlet.http.HttpServletRequest request, UnauthorisedException e)
-
-
-
Method Detail
-
handleGafferRuntimeException
@ExceptionHandler(GafferRuntimeException.class) @ResponseBody public org.springframework.http.ResponseEntity<?> handleGafferRuntimeException(javax.servlet.http.HttpServletRequest request, GafferRuntimeException gre)
-
handleUnauthorisedException
@ExceptionHandler(UnauthorisedException.class) @ResponseBody public org.springframework.http.ResponseEntity<?> handleUnauthorisedException(javax.servlet.http.HttpServletRequest request, UnauthorisedException e)
-
handleGafferWrappedErrorRuntimeException
@ExceptionHandler(GafferWrappedErrorRuntimeException.class) @ResponseBody public org.springframework.http.ResponseEntity<?> handleGafferWrappedErrorRuntimeException(javax.servlet.http.HttpServletRequest request, GafferWrappedErrorRuntimeException e)
-
handleAllOtherTypesOfException
@ExceptionHandler(java.lang.Exception.class) @ResponseBody public org.springframework.http.ResponseEntity<?> handleAllOtherTypesOfException(javax.servlet.http.HttpServletRequest request, Exception e)
-
-