Forum Discussion
stebi
13 years agoOccasional Contributor
[Unit1.sd]
procedure Foo;
begin
raise('Foo-Exception');
end;
procedure Execute;
begin
try
Evaluate('Foo'); // Exception inside Foo is successfully caught
except
Log.Error( ExceptionMessage);
end;
try
Runner.CallMethod('Unit1.Foo');
except
Log.Error( ExceptionMessage); // Exception inside Foo is not caught. It turns in a "Script Runtime Error" an breaks the execution.
end;
end;
Related Content
- 4 years ago
Recent Discussions
- 16 hours ago
- 23 hours ago
- 23 hours ago