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)
1931Assert.Equal("Bang!", state1.Exception.Message); 1958Assert.Equal("Bang!", state2.Exception.Message); 1986Assert.Equal("Bang!", state3.Exception.Message); 2006Assert.Equal("Bang 1!", state1.Exception.Message); 2014Assert.Equal("Bang 2!", state2.Exception.Message); 2049Assert.IsType<OperationCanceledException>(state3.Exception); 2083Assert.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)
298if (state.Exception != null) 300DisplayException(state.Exception);