From 57f90eaa8204bcfd8d4d989bc93870c189304b3c Mon Sep 17 00:00:00 2001 From: mfnefd Date: Wed, 5 Jun 2024 01:23:35 +0400 Subject: [PATCH] add element not found exception --- .../Exceptions/ElementNotFoundException.cs | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Contracts/Exceptions/ElementNotFoundException.cs diff --git a/Contracts/Exceptions/ElementNotFoundException.cs b/Contracts/Exceptions/ElementNotFoundException.cs new file mode 100644 index 0000000..7fad056 --- /dev/null +++ b/Contracts/Exceptions/ElementNotFoundException.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Contracts.Exceptions +{ + public class ElementNotFoundException : Exception + { + public ElementNotFoundException() : base("Element not founded.") + { + } + + public ElementNotFoundException(string message) : base(message) + { + } + + public ElementNotFoundException(string message, Exception inner) : base(message, inner) + { + } + } +} \ No newline at end of file