Appearance
RaiseException
Declaration
procedure RaiseException(See ExceptionType, ExceptionParam);
Example
pascal
procedure OnMapEvent(var Value:Variant);
begin
try
Value := 1/0;
except
LogWarning('Exception occurred: ' + ExceptionToString(ExceptionType, ExceptionParam));
//now raise to let Flow automatically handle the error reporting
RaiseException(ExceptionType, ExceptionParam);
end;
end;Description
Raise the exception to the next level of Try...Except block.
If Try...Except blocks are nested then it fires the code of the upper block, however if this is the top level block then it is raised to Flow for the default error handling to occur.