Skip to content

Error

Summary

Encapsulates an error code.

Signature

1
public abstract interface Error

Namespace

cAlgo.API

Properties

Name Description
Code { get; } The encapsulated error code.
TradeResult { get; } The result of the trade that produced the error

Examples

1
2
3
4
5
 protected override void OnError(Error error)
 {
     // Print the error code
     Print("{0}", error.Code);
 }

Last update: March 30, 2023