js3521
2012-10-25 15:46:18
I can't seem to find any documentation on raising exceptions in Simba. I tried compiling the following SCAR script:
I expected that it might fail because the Exception class doesn't exist or isn't within scope. Instead, it gave me the error "Unknown identifier 'raise' at line 2". Am I right in assuming that the compiler isn't recognizing the 'raise' keyword? If this is the case, is it possible to raise exceptions at all in Simba?
begin
raise Exception.Create('Test');
end.I expected that it might fail because the Exception class doesn't exist or isn't within scope. Instead, it gave me the error "Unknown identifier 'raise' at line 2". Am I right in assuming that the compiler isn't recognizing the 'raise' keyword? If this is the case, is it possible to raise exceptions at all in Simba?