You are here: Scripting Reference > Functions > Exceptions > ExceptionType

ExceptionType

Declaration

function ExceptionType: TIFException;

Example

procedure OnMapEvent(var Value:Variant);

begin

try

Value := 1/0;

except

LogError('Exception occurred: ' + ExceptionToString(ExceptionType, ExceptionParam));

end;

end;

Description

Returns an exception object that is used in See "ExceptionToString" and See "RaiseException" functions.