Click the Code tab at the bottom of the
design workspace to check the generated code.
As shown above, while messages are routed
.doFinally()blocks are built by
cTry_1. Thus, when any file does not meet the content requirement, an exception is thrown and caught, before each file is finally routed to the receiver.
Press F6 to execute the Route.
RESULT: When a file that does not meet the content requirement is detected, an exception is thrown, and the exception information is displayed on the console. Regardless of the exception, all the files from the sender are sent to the receiver.