From f0e9e6d4fc97726a6fff9ab49535d858a03879ed Mon Sep 17 00:00:00 2001 From: Alberto Spelta Date: Wed, 8 Nov 2023 15:05:24 +0100 Subject: [PATCH] Add 'innerException' constructor to TemplateException (#40) --- src/Dax.Template/Exceptions/TemplateException.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Dax.Template/Exceptions/TemplateException.cs b/src/Dax.Template/Exceptions/TemplateException.cs index d434d9d..e032366 100644 --- a/src/Dax.Template/Exceptions/TemplateException.cs +++ b/src/Dax.Template/Exceptions/TemplateException.cs @@ -13,6 +13,11 @@ public TemplateException(string message) : base(message) { } + + public TemplateException(string message, Exception innerException) + : base(message, innerException) + { + } } public class TemplateConfigurationException : TemplateException @@ -21,6 +26,11 @@ public TemplateConfigurationException(string message) : base(message) { } + + public TemplateConfigurationException(string message, Exception innerException) + : base(message, innerException) + { + } } public class TemplateUnexpectedException : Exception