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

ExceptionParam

Declaration

function ExceptionParam: string;

Example

procedure OnMapEvent(var Value:Variant);

begin

try

Value := 1/0;

except

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

end;

end;

Description

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