1 write to Exception
Microsoft.CodeAnalysis.Scripting (1)
ScriptState.cs (1)
49
Exception
= exceptionOpt;
12 references to Exception
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (7)
InteractiveSessionTests.cs (7)
1931
Assert.Equal("Bang!", state1.
Exception
.Message);
1958
Assert.Equal("Bang!", state2.
Exception
.Message);
1986
Assert.Equal("Bang!", state3.
Exception
.Message);
2006
Assert.Equal("Bang 1!", state1.
Exception
.Message);
2014
Assert.Equal("Bang 2!", state2.
Exception
.Message);
2049
Assert.IsType<OperationCanceledException>(state3.
Exception
);
2083
Assert.IsType<OperationCanceledException>(state3.
Exception
);
Microsoft.CodeAnalysis.InteractiveHost (3)
Interactive\Core\InteractiveHost.Service.cs (3)
688
return CompleteExecution(state.WithScriptState(newScriptState), completionSource, success: newScriptState.
Exception
== null);
760
if (newState.
Exception
!= null)
762
DisplayException(newState.
Exception
);
Microsoft.CodeAnalysis.Scripting (2)
Hosting\CommandLine\CommandLineRunner.cs (2)
298
if (state.
Exception
!= null)
300
DisplayException(state.
Exception
);