Error Codes
-
- Posts: 17
- Joined: Sat 02 May 2009 11:20
Error Codes
How do I get the Database Error code associated with the raised Exception?
Re: Error Codes
try[email protected] wrote:How do I get the Database Error code associated with the raised Exception?
uniquery1.Execute;
except
on e: Exception do
begin
showmessage(EDAError(e).Message);
showmessage(inttostr(EDAError(e).ErrorCode)); //return Server error num
end;
end;