Issue 498: Allow for and pass innerException (#499)
This commit is contained in:
parent
959dd8615b
commit
99aeac3263
|
|
@ -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)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue