This example shows how you can define your own exception handling mechanism. In this case, we will catch C++ exceptions and turn them into Perl exceptions. Currently, this example is set up to work with ecgs. You will have to modify the compile options for other C++ compilers.