function ExceptionType: TIFException;
procedure OnMapEvent(var Value:Variant);
begin
try
Value := 1/0;
except
LogError('Exception occurred: ' + ExceptionToString(ExceptionType, ExceptionParam));
end;
end;
Returns an exception object that is used in See "ExceptionToString" and See "RaiseException" functions.