Is there a way to catch an exception from a db2 text extender contains function?

I do not seem to be able to with (Exception e).

Thanks

T