What about the TOracleScript.OnError event:
"This event fires whenever an error occurs during execution of a SQL command. Use the CurrentCommand property to access the ErrorCode and ErrorMessage properties of the current command."
------------------
Marco Kalter
Allround Automations