首先你要知道BDE在什么情况下出错(post,delete...),然后在相应的
事件中处理,如
if (E is edbengineerror) then
   if (e as edbengineerror).errors[0].errorcode=*** then
      begin
         ....
      end;errorcode的代码你可以查相关资料