From 73f81cc8a2dd02426911070705cc0e5d81f11f84 Mon Sep 17 00:00:00 2001 From: FlorianDahn Date: Mon, 2 Dec 2019 03:54:10 +0100 Subject: [PATCH] Revert "- adding new exceptions" This reverts commit 2071ba2eeb3b37939062af613fadb02f893ca7b5. --- .../Exceptions/MaximumColsException.cs | 22 +++++++++++++++++++ .../Exceptions/MaximumRowsException.cs | 22 +++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 TelegramBotBase/Exceptions/MaximumColsException.cs create mode 100644 TelegramBotBase/Exceptions/MaximumRowsException.cs 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()}"; + } + } + } +}