Class SpringBusExceptionHandler
java.lang.Object
org.frankframework.console.exceptions.SpringBusExceptionHandler
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.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<?> org.springframework.http.ResponseEntity<?> toResponse(org.springframework.messaging.MessageHandlingException mhe)
-
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)
-