Files
Telegrator/Telegrator/MadiatorCore/IRouterExceptionHandler.cs
T
Rikitav b86699a65e * Improved "MessageChatTypeFilter", now accepts flagged version of "ChatType" enum. "ChatTypeFlags"
* Added classes to reactive update filter annotations implementation "FilterAnnotation"
* "CollectHandlersDowmainWide" method moved as extension to IHandlersCollection and added method "CollectHandlerAssemblyWide" named respectfully
* Added "DefaultRouterExceptionHandler" to reactive implement "IRouterExceptionHandler" from function delegate
* Small bug fixes in API overview generator logic
2025-07-26 21:03:42 +04:00

23 lines
1004 B
C#

using Telegram.Bot;
using Telegram.Bot.Polling;
using Telegrator.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);
}
}