From 5e8ccff93e8cfb1d75c3c089bab7ae63ea043827 Mon Sep 17 00:00:00 2001 From: jojo aquino Date: Mon, 24 Mar 2025 09:11:37 +0000 Subject: [PATCH] add InvalidConfigurationException --- .../Common/Exceptions/InvalidConfigurationException.cs | 9 +++++++++ EnotaryoPH/EnotaryoPH.Web/Usings.cs | 1 + 2 files changed, 10 insertions(+) create mode 100644 EnotaryoPH/EnotaryoPH.Web/Common/Exceptions/InvalidConfigurationException.cs diff --git a/EnotaryoPH/EnotaryoPH.Web/Common/Exceptions/InvalidConfigurationException.cs b/EnotaryoPH/EnotaryoPH.Web/Common/Exceptions/InvalidConfigurationException.cs new file mode 100644 index 0000000..0d7a68d --- /dev/null +++ b/EnotaryoPH/EnotaryoPH.Web/Common/Exceptions/InvalidConfigurationException.cs @@ -0,0 +1,9 @@ +namespace EnotaryoPH.Web.Common.Exceptions +{ + public class InvalidConfigurationException : Exception + { + public InvalidConfigurationException(string configurationName, object value) : base($"Invalid value '{value}' for configuration '{configurationName}'.") + { + } + } +} \ No newline at end of file diff --git a/EnotaryoPH/EnotaryoPH.Web/Usings.cs b/EnotaryoPH/EnotaryoPH.Web/Usings.cs index ca52af5..8a45c78 100644 --- a/EnotaryoPH/EnotaryoPH.Web/Usings.cs +++ b/EnotaryoPH/EnotaryoPH.Web/Usings.cs @@ -1,4 +1,5 @@ global using EnotaryoPH.Data.Constants; +global using EnotaryoPH.Web.Common.Exceptions; global using EnotaryoPH.Web.Common.Extensions; global using EnotaryoPH.Web.Common.Helpers; global using EnotaryoPH.Web.Common.Services;