Class EhrScapeExceptionHandler

java.lang.Object
org.ehrbase.rest.ehrscape.EhrScapeExceptionHandler

@RestControllerAdvice(basePackages="org.ehrbase.rest.ehrscape.controller") @Order(-2147483648) public class EhrScapeExceptionHandler extends Object
EhrScape API exception handler.
  • Constructor Details

    • EhrScapeExceptionHandler

      public EhrScapeExceptionHandler()
  • Method Details

    • handleBadRequestExceptions

      @ExceptionHandler({org.springframework.http.converter.HttpMessageNotReadableException.class,org.springframework.web.method.annotation.MethodArgumentTypeMismatchException.class,org.springframework.web.multipart.support.MissingServletRequestPartException.class,org.springframework.validation.BindException.class,org.springframework.web.bind.ServletRequestBindingException.class,java.lang.IllegalArgumentException.class,org.ehrbase.api.exception.GeneralRequestProcessingException.class,org.ehrbase.api.exception.InvalidApiParameterException.class,org.ehrbase.api.exception.UnprocessableEntityException.class,org.ehrbase.api.exception.ValidationException.class,org.ehrbase.openehr.sdk.serialisation.exception.UnmarshalException.class,org.ehrbase.api.exception.AqlFeatureNotImplementedException.class,org.ehrbase.api.exception.IllegalAqlException.class}) public org.springframework.http.ResponseEntity<Object> handleBadRequestExceptions(Exception ex)
    • handleObjectNotFoundException

      @ExceptionHandler(java.nio.file.AccessDeniedException.class) public org.springframework.http.ResponseEntity<Object> handleObjectNotFoundException(AccessDeniedException ex)
    • handleObjectNotFoundException

      @ExceptionHandler(org.ehrbase.api.exception.ObjectNotFoundException.class) public org.springframework.http.ResponseEntity<Object> handleObjectNotFoundException(org.ehrbase.api.exception.ObjectNotFoundException ex)
    • handleNotAcceptableException

      @ExceptionHandler({org.springframework.web.HttpMediaTypeNotAcceptableException.class,org.ehrbase.api.exception.NotAcceptableException.class}) public org.springframework.http.ResponseEntity<Object> handleNotAcceptableException(org.ehrbase.api.exception.NotAcceptableException ex)
    • handleStateConflictException

      @ExceptionHandler(org.ehrbase.api.exception.StateConflictException.class) public org.springframework.http.ResponseEntity<Object> handleStateConflictException(org.ehrbase.api.exception.StateConflictException ex)
    • handlePreconditionFailedException

      @ExceptionHandler(org.ehrbase.api.exception.PreconditionFailedException.class) public org.springframework.http.ResponseEntity<Object> handlePreconditionFailedException(org.ehrbase.api.exception.PreconditionFailedException ex)
    • handleUnsupportedMediaTypeException

      @ExceptionHandler({org.springframework.web.HttpMediaTypeNotSupportedException.class,org.ehrbase.api.exception.UnsupportedMediaTypeException.class}) public org.springframework.http.ResponseEntity<Object> handleUnsupportedMediaTypeException(org.ehrbase.api.exception.UnsupportedMediaTypeException ex)
    • handleSpringResponseStatusException

      @ExceptionHandler(org.springframework.web.server.ResponseStatusException.class) public org.springframework.http.ResponseEntity<Object> handleSpringResponseStatusException(org.springframework.web.server.ResponseStatusException ex)
    • handleUncaughtException

      @ExceptionHandler(java.lang.Exception.class) public org.springframework.http.ResponseEntity<Object> handleUncaughtException(Exception ex)