# Viewing code and executing the Route

## Procedure

1. Click the Code tab at the bottom of the design workspace to check the generated code.

   ![](https://help.qlik.com/talend/en-US/mediation-components/8.0/Resources/images/use_case_ctry_8.png)

   As shown above, while messages are routed from the sender .to the receiver, .doTry(), .doCatch() and .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.
2. Press F6 to execute the Route.

   ![](https://help.qlik.com/talend/en-US/mediation-components/8.0/Resources/images/use_case_ctry_9.png)

   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.