Delegate IExternalApiV1.ExternalDataErrorHandlerAsync
- Namespace
- WhalesSecret.TradeScriptLib.API
- Assembly
- WhalesSecret.TradeScriptLib.dll
Callback method that is called when an error occurs while an attempt to get external data was made. Error to get data only indicates one failed attempt. More attempts to get new data will be made in the future. Each failure attempt leads to a single call of the callback.
public delegate Task IExternalApiV1.ExternalDataErrorHandlerAsync(ErrorCode errorCode, string? errorMessage)
Parameters
errorCode
ErrorCodeError code that indicates the type of the error that occurred.
errorMessage
stringOptionally, a detailed description of the error.
Returns
- Extension Methods