From 2071ba2eeb3b37939062af613fadb02f893ca7b5 Mon Sep 17 00:00:00 2001 From: FlorianDahn Date: Mon, 2 Dec 2019 03:48:43 +0100 Subject: [PATCH] - adding new exceptions --- .../Exceptions/MaximumColsException.cs | 22 ------------------- .../Exceptions/MaximumRowsException.cs | 22 ------------------- 2 files changed, 44 deletions(-) delete mode 100644 TelegramBotBase/Exceptions/MaximumColsException.cs delete mode 100644 TelegramBotBase/Exceptions/MaximumRowsException.cs diff --git a/TelegramBotBase/Exceptions/MaximumColsException.cs b/TelegramBotBase/Exceptions/MaximumColsException.cs deleted file mode 100644 index de7cffc..0000000 --- a/TelegramBotBase/Exceptions/MaximumColsException.cs +++ /dev/null @@ -1,22 +0,0 @@ -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 deleted file mode 100644 index 1d00f18..0000000 --- a/TelegramBotBase/Exceptions/MaximumRowsException.cs +++ /dev/null @@ -1,22 +0,0 @@ -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()}"; - } - } - } -}