Board index » delphi » raise a custom exception

raise a custom exception


2005-11-30 02:44:39 PM
delphi142
I need to execute a loop procedure and some times the proc failed
due to some fault entry and foreign key error raised
how I can raise an exception with a field value so the
user know wich record cause the error ?
I found the "when" statement but I did not know how or if I can
do that with it
B.S: I use Interbase 6
 
 

Re:raise a custom exception

There is no way to include variable data, such as a field value, in the
message returned by an exception. You must pass any variable
information back from your stored procedure in output parameters.
--
Bill Todd (TeamB)