diff --git a/src/core/Elsa.Abstractions/Exceptions/WorkflowException.cs b/src/core/Elsa.Abstractions/Exceptions/WorkflowException.cs index 377f06f49..a54643b3a 100644 --- a/src/core/Elsa.Abstractions/Exceptions/WorkflowException.cs +++ b/src/core/Elsa.Abstractions/Exceptions/WorkflowException.cs @@ -4,8 +4,16 @@ namespace Elsa.Exceptions { public class WorkflowException : Exception { + public WorkflowException() : base() + { + } + public WorkflowException(string message) : base(message) { } + + public WorkflowException(string message, Exception innerException) : base(message, innerException) + { + } } -} \ No newline at end of file +} diff --git a/src/core/Elsa.Core/Expressions/WorkflowExpressionEvaluator.cs b/src/core/Elsa.Core/Expressions/WorkflowExpressionEvaluator.cs index a64486b78..ac62b313b 100644 --- a/src/core/Elsa.Core/Expressions/WorkflowExpressionEvaluator.cs +++ b/src/core/Elsa.Core/Expressions/WorkflowExpressionEvaluator.cs @@ -37,7 +37,7 @@ namespace Elsa.Expressions string message = $"Error while evaluating {expression.Syntax} expression \"{expression.Expression}\". Message: {e.Message}"; logger.LogError(e, message); - throw new WorkflowException(message); + throw new WorkflowException(message, e); } } }