Pascal Cadot
Member
Context : Delphi 4 UP3, Oracle 8.0.5, DOA 3.3
My OracleDataSet.LockingMode property is set to 'lmLockImmediate'. When concurrent accesses append on the same record of my dataset, a message box is displayed. I know I can change the message... OK. But I would like an exception to be triggered... an exception (EOracleError) catchable with try...except... instruction. An Oracle error is generated because OnTranslateMessage event is triggered with an error code (ORA-00054). But this is not an Exception.
How an exception can be triggered in that case ? How can I catch this event differently ?
Thanks for your answers.
My OracleDataSet.LockingMode property is set to 'lmLockImmediate'. When concurrent accesses append on the same record of my dataset, a message box is displayed. I know I can change the message... OK. But I would like an exception to be triggered... an exception (EOracleError) catchable with try...except... instruction. An Oracle error is generated because OnTranslateMessage event is triggered with an error code (ORA-00054). But this is not an Exception.
How an exception can be triggered in that case ? How can I catch this event differently ?
Thanks for your answers.