Table of Contents

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 ErrorCode

Error code that indicates the type of the error that occurred.

errorMessage string

Optionally, a detailed description of the error.

Returns

Task

A Task representing the asynchronous operation.

Extension Methods