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;