Skip to content

Code Property

Summary

The encapsulated error code.

Signature

1
public abstract ErrorCode Code {get;}

Return Value

ErrorCode

Declaring Type

cAlgo.API.Error

Examples

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

Last update: July 1, 2022

Comments