Files
Telegrator/Telegrator/MadiatorCore/IRouterExceptionHandler.cs
T
Rikitav a7fe90ac50 * Renamed DescribeHandlerInfo to DescribedHandlerDescriptor
* Added AwaitResult and ReportResult methods to DescribedHandlerDescriptor
* Moved DontCollectAttribute and MightAwaitAttribute to Annotations namespace
* Rewrote UpdateRouter and UpdateHandlersPool
* Fixed Synchronous handlers routing bug
* Code cleanup
2026-03-06 18:51:10 +04:00

22 lines
978 B
C#

using Telegram.Bot;
using Telegram.Bot.Polling;
namespace Telegrator.MadiatorCore
{
/// <summary>
/// Interface for handling exceptions that occur during update routing operations.
/// Provides a centralized way to handle and log errors that occur during bot operation.
/// </summary>
public interface IRouterExceptionHandler
{
/// <summary>
/// Handles exceptions that occur during update routing.
/// </summary>
/// <param name="botClient">The <see cref="ITelegramBotClient"/> instance.</param>
/// <param name="exception">The exception that occurred.</param>
/// <param name="source">The <see cref="HandleErrorSource"/> indicating the source of the error.</param>
/// <param name="cancellationToken">The cancellation token.</param>
public void HandleException(ITelegramBotClient botClient, Exception exception, HandleErrorSource source, CancellationToken cancellationToken);
}
}