diff --git a/TelegramBotBase/Exceptions/MaximumColsException.cs b/TelegramBotBase/Exceptions/MaximumColsException.cs new file mode 100644 index 0000000..de7cffc --- /dev/null +++ b/TelegramBotBase/Exceptions/MaximumColsException.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace TelegramBotBase.Exceptions +{ + public class MaximumColsException : Exception + { + public int Value { get; set; } + + public int Maximum { get; set; } + + + public override string Message + { + get + { + return $"You have exceeded the maximum of columns by {Value.ToString()} / {Maximum.ToString()}"; + } + } + } +} diff --git a/TelegramBotBase/Exceptions/MaximumRowsException.cs b/TelegramBotBase/Exceptions/MaximumRowsException.cs new file mode 100644 index 0000000..1d00f18 --- /dev/null +++ b/TelegramBotBase/Exceptions/MaximumRowsException.cs @@ -0,0 +1,22 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace TelegramBotBase.Exceptions +{ + public class MaximumRowsReachedException : Exception + { + public int Value { get; set; } + + public int Maximum { get; set; } + + + public override string Message + { + get + { + return $"You have exceeded the maximum of rows by {Value.ToString()} / {Maximum.ToString()}"; + } + } + } +}