Page 1 of 1
TOraErrorHandler
Posted: Mon 08 Nov 2004 23:42
by Dougo
Hi,
I am updating a table using TOraQuery, no problems. I want to trap the errors, if any, when they return. I presumed TOraErrorHandler was the correct object but I am not sure how to go about it. Have you got a code snippet or something I can use.
Cheers
Posted: Wed 10 Nov 2004 07:23
by Paul
If you want to trap an error generated by TOraQuery please use TOraSession.OnError event.
You can change the text of the error message and make it more friendly using TOraErrorHandler component. Please see ODAC help and MasterDetail demo project to get know how to use TOraErrorHandler component.
TOraErrorhandler
Posted: Thu 11 Nov 2004 21:49
by Dougo
Thanks Paul,
I had looked at the master detail demo prior to putting this message on. Unless I am missing something I could not tell where the message was generated, within the OnError event the case statement only refers to login errors. Do you have any other examples I could view.
Cheers
Dougo
Posted: Mon 15 Nov 2004 15:51
by Paul
You cannot get an information about the object where an exception occurs. ODAC doesn't provide such functionality.