setThrowErrorAsException()

Allows to change the behavior for error handling within the current thread.

Synopsis

int setThrowErrorAsException(bool on = true);

Parameters

Parameter Description
on Defines if the Exceptions should be enabled or disabled.

Return value

Returns 0 in case of a success.

Description

The function allows to enable the current thread to throw an exception in case of an error additionally to writing the error to the log viewer. This exception can be caught using try/catch.

Assignment

Miscellaneous functions

Availability

UI, CTRL