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)
1932
Assert.Equal("Bang!", state1.
Exception
.Message);
1959
Assert.Equal("Bang!", state2.
Exception
.Message);
1987
Assert.Equal("Bang!", state3.
Exception
.Message);
2007
Assert.Equal("Bang 1!", state1.
Exception
.Message);
2015
Assert.Equal("Bang 2!", state2.
Exception
.Message);
2050
Assert.IsType<OperationCanceledException>(state3.
Exception
);
2084
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)
310
if (state.
Exception
!= null)
312
DisplayException(state.
Exception
);