Class RestResponseExceptionHandler

java.lang.Object
org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
ch.admin.bit.jeap.messageexchange.web.api.RestResponseExceptionHandler
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.MessageSourceAware

@RestControllerAdvice public class RestResponseExceptionHandler extends org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler
  • Field Summary

    Fields inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler

    logger, PAGE_NOT_FOUND_LOG_CATEGORY, pageNotFoundLogger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.http.ResponseEntity<String>
     
    org.springframework.http.ResponseEntity<String>
    handleInvalidXMLInputException(ch.admin.bit.jeap.messageexchange.domain.xml.InvalidXMLInputException ex)
     
    org.springframework.http.ResponseEntity<String>
    handleMalwareScanNotDeliveringException(ch.admin.bit.jeap.messageexchange.domain.exception.MalwareScanFailedOrBlockedException ex)
     
    org.springframework.http.ResponseEntity<String>
     

    Methods inherited from class org.springframework.web.servlet.mvc.method.annotation.ResponseEntityExceptionHandler

    createProblemDetail, createResponseEntity, getMessageSource, handleAsyncRequestNotUsableException, handleAsyncRequestTimeoutException, handleConversionNotSupported, handleErrorResponseException, handleException, handleExceptionInternal, handleHandlerMethodValidationException, handleHttpMediaTypeNotAcceptable, handleHttpMediaTypeNotSupported, handleHttpMessageNotReadable, handleHttpMessageNotWritable, handleHttpRequestMethodNotSupported, handleMaxUploadSizeExceededException, handleMethodArgumentNotValid, handleMethodValidationException, handleMissingPathVariable, handleMissingServletRequestParameter, handleMissingServletRequestPart, handleNoHandlerFoundException, handleNoResourceFoundException, handleServletRequestBindingException, handleTypeMismatch, setMessageSource

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RestResponseExceptionHandler

      public RestResponseExceptionHandler()
  • Method Details

    • handleInvalidXMLInputException

      @ExceptionHandler(ch.admin.bit.jeap.messageexchange.domain.xml.InvalidXMLInputException.class) public org.springframework.http.ResponseEntity<String> handleInvalidXMLInputException(ch.admin.bit.jeap.messageexchange.domain.xml.InvalidXMLInputException ex)
    • handleInvalidBpIdException

      @ExceptionHandler(InvalidBpIdException.class) public org.springframework.http.ResponseEntity<String> handleInvalidBpIdException(InvalidBpIdException ex)
    • handleMalwareScanNotDeliveringException

      @ExceptionHandler(ch.admin.bit.jeap.messageexchange.domain.exception.MalwareScanFailedOrBlockedException.class) public org.springframework.http.ResponseEntity<String> handleMalwareScanNotDeliveringException(ch.admin.bit.jeap.messageexchange.domain.exception.MalwareScanFailedOrBlockedException ex)
    • handleMissingRequiredHeaderException

      @ExceptionHandler(MissingRequiredHeaderException.class) public org.springframework.http.ResponseEntity<String> handleMissingRequiredHeaderException(MissingRequiredHeaderException ex)