Class SpringBusExceptionHandler

java.lang.Object
org.frankframework.console.exceptions.SpringBusExceptionHandler

@RestControllerAdvice @Order(-2147483648) public class SpringBusExceptionHandler extends Object
This ExceptionHandler catches Spring Integration related exceptions as well as the BusException thrown by the Frank!Framework. Catch all MessageHandlingException even when they are not thrown from our own sources. We need to prioritize this so our handler is used before Spring's own ExceptionHandler.
  • Constructor Details

    • SpringBusExceptionHandler

      public SpringBusExceptionHandler()
  • Method Details

    • toResponse

      @ExceptionHandler(BusException.class) public org.springframework.http.ResponseEntity<?> toResponse(BusException be)
    • toResponse

      @ExceptionHandler(org.springframework.messaging.MessageHandlingException.class) public org.springframework.http.ResponseEntity<?> toResponse(org.springframework.messaging.MessageHandlingException mhe)