Home > Back-end >  ADO database exception class problem, look for several days didn't find, knot posted at once.
ADO database exception class problem, look for several days didn't find, knot posted at once.

Time:12-09

Try
ADO database connection, data update, etc.,
Other code
Except,
On E: the Exception do begin
end;
end;
I mean now on E: the Exception is too thick, it is best to locate to specific exceptions, such as overtime, or SQL statement has a problem, it can be targeted for treatment, so I need some of ADO database Exception class, trouble under the warrior ADO database Exception class tell me, looking for half a day

CodePudding user response:

No, this is no one answer?

CodePudding user response:

I don't really understand, but when you use the D7, you in the class, such as the TADOQUERY press CTRL point with the mouse to click again, can find the ADO relevant source, and the definition of EXCETION, you can try to solve your problem

CodePudding user response:

ADO to connect to the database by SQL statements can return to SQL connection error,

CodePudding user response:

I want to capture is abnormal

CodePudding user response:

On E: the Exception do
Showmessage (' exception class name: + lassName of e.c. with our fabrication:
+ # 13 # 10 + 'abnormal information: + E.M essage);
This kind of? Or refer to the following web page:
http://www.cnblogs.com/spider518/archive/2010/12/30/1921298.html

CodePudding user response:

reference 5 floor ZBDZJX reply:
on E: the Exception do
Showmessage (' exception class name: + lassName of e.c. with our fabrication:
+ # 13 # 10 + 'abnormal information: + E.M essage);
This kind of? Or refer to the following web page:
http://www.cnblogs.com/spider518/archive/2010/12/30/1921298.html


Above, can only display error classes and predetermined error information,

If, you say that specific, is to write their own code to handle,

CodePudding user response:

EurekaLog can at the time of debugging, accurate information about the error is given

CodePudding user response:

Ado exception code meaning table
http://www.cnblogs.com/same/archive/2007/08/29/874790.html
  • Related