Introduce EDatabaseError exception class, so we're able to handle only those and let others raise the exception up to MadExcept. Helps finding non-database related AVs as users are able to get the callstack now. Similar to r3292 but more consistent all over the code now.

This commit is contained in:
Ansgar Becker
2010-04-24 13:56:57 +00:00
parent 6bb8bb6875
commit b3b1710c35
14 changed files with 59 additions and 60 deletions

View File

@ -460,7 +460,7 @@ begin
btnDiscard.Enabled := Modified;
Mainform.actRunRoutines.Enabled := True;
except
on E:Exception do begin
on E:EDatabaseError do begin
MessageDlg(E.Message, mtError, [mbOk], 0);
Result := mrAbort;
end;