Error.Code
property · Error · cAlgo.API
DesktopCLICloud
The encapsulated error code.
Definition
ErrorCode Code {get;}
error.Code: ErrorCode
Returns ErrorCode
Examples
protected override void OnError(Error error)
{
if (error.Code == ErrorCode.BadVolume)
{
Print("Invalid volume, stopping the cBot");
Stop();
}
}
def on_error(self, error):
if error.Code == ErrorCode.BadVolume:
api.Print("Invalid volume, stopping the cBot")
api.Stop()