Adding a exception for invalid ServiceProviders #62

- adding an internal exception handler to catch InvalidOperationException and throw a new explicit one
This commit is contained in:
Florian Zevedei
2024-03-10 17:09:13 +01:00
parent 6e7acdbdba
commit b829f43c5d
3 changed files with 31 additions and 1 deletions
@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace TelegramBotBase.Exceptions
{
public sealed class InvalidServiceProviderConfiguration : Exception
{
public InvalidServiceProviderConfiguration(string message, Exception innerException) : base(message, innerException) { }
}
}