Intercept all exceptions that arise at the client level in application

Hello, at the moment I’m doing UI testing a large application made in the Cuba platform. Accordingly, the question arose, can I use the tools of this platform to intercept all exceptions that arise at the client level? (For example, some form or a whole screen has disappeared, and I need to transfer this exception to the test) And accordingly, it’s all necessary for me to drop the test if there are exceptions. At the moment I use Masquerade, but in the tools of this add-on I saw no such option

Thank you , i’m solve this problem . I’m use try catch , and catch exception