◆ ThrowExceptions()

virtual void ThrowExceptions ( bool  state)
pure virtual

Configure a class to throw exceptions.

ℹ This function is avaliable in RapidCode and RapidSequencer

Description:
ThrowExceptions configures a class to throw execptions.
Parameters
stateIf state is true, any methods in this class will throw exceptions if any errors occur. If state is false, the methods will log software errors for reading at a later time
Sample Code:
ErrorLog
// Turn off exceptions.
axis.ThrowExceptions(false);
// Do something that will cause an error (zero acceleration).
axis.MoveVelocity(0.0, 0.0);
RsiError err;
while (controller.ErrorLogCountGet() > 0)
{
err = controller.ErrorLogGet();
Console.WriteLine("%s\n", err.text);
}
Note

All classes will throw exceptions by default.

See also
ErrorLogGet