Code


Summary

The encapsulated error code.

Syntax

public ErrorCode Code{ get; }

Example 1

protected override void OnError(Error error)
{
    // stop the robot if there is a volume error
    if (error.Code == ErrorCode.BadVolume)
        Stop();
}