Iam trying to activate an exception when a tsl function is failed.
I have created the exception handler function in a compiled module and used exception_on() function to activate the exception.

It is not calling the exception handler function.

How can we implement exception handler function.

What is the right place to define an exception( in the test or in any compiled module).

Thanks in advance.