1 write to Exception
Microsoft.CodeAnalysis.Scripting (1)
ScriptState.cs (1)
49Exception = exceptionOpt;
12 references to Exception
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (7)
InteractiveSessionTests.cs (7)
1932Assert.Equal("Bang!", state1.Exception.Message); 1959Assert.Equal("Bang!", state2.Exception.Message); 1987Assert.Equal("Bang!", state3.Exception.Message); 2007Assert.Equal("Bang 1!", state1.Exception.Message); 2015Assert.Equal("Bang 2!", state2.Exception.Message); 2050Assert.IsType<OperationCanceledException>(state3.Exception); 2084Assert.IsType<OperationCanceledException>(state3.Exception);
Microsoft.CodeAnalysis.InteractiveHost (3)
Interactive\Core\InteractiveHost.Service.cs (3)
688return CompleteExecution(state.WithScriptState(newScriptState), completionSource, success: newScriptState.Exception == null); 760if (newState.Exception != null) 762DisplayException(newState.Exception);
Microsoft.CodeAnalysis.Scripting (2)
Hosting\CommandLine\CommandLineRunner.cs (2)
310if (state.Exception != null) 312DisplayException(state.Exception);