Accessing errorText within a Catch block

Is there an easy way to access the errorText of the errorNotify that is caught in the Catch block within the Enterprise Integrator? Can I catch only some exceptions (and pass others)?

Enterprise 4.1.1, Tools 4.5.1, on Win2k.

What you need to do is declare a private member variable at the top of the integration script. Then in the script under the try-catch you write to that variable:

try {
catchStepTry();
}
catch (AdapterException catchStepEx) {
someStringVariable = catchStepEx.toString();
catchStepCatch();
}

then use a custom step to return someStringVariable. You can only catch AdapterException exceptions within the try-catch. So if you have a custom step within the try-catch and it throws a null pointer exception, it will not be caught.