Skip to content

Commit ec74adc

Browse files
committed
EvaluatorExceptionThrownException handling in ValueReference. This allows to properly show an exception occurred during property evaluation.
1 parent e721e13 commit ec74adc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Mono.Debugging/Mono.Debugging.Evaluation/ValueReference.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ public ObjectValue CreateObjectValue (EvaluationOptions options)
106106
return DC.ObjectValue.CreateImplicitNotSupported (this, new ObjectPath (Name), Context.Adapter.GetDisplayTypeName (GetContext (options), Type), Flags);
107107
} catch (NotSupportedExpressionException ex) {
108108
return DC.ObjectValue.CreateNotSupported (this, new ObjectPath (Name), Context.Adapter.GetDisplayTypeName (GetContext (options), Type), ex.Message, Flags);
109+
} catch (EvaluatorExceptionThrownException ex) {
110+
return DC.ObjectValue.CreateEvaluationException (Context, Context.ExpressionValueSource, new ObjectPath (Name), ex);
109111
} catch (EvaluatorException ex) {
110112
return DC.ObjectValue.CreateError (this, new ObjectPath (Name), "", ex.Message, Flags);
111113
} catch (Exception ex) {

0 commit comments

Comments
 (0)