2 writes to Exception
Microsoft.JSInterop (2)
Infrastructure\DotNetInvocationResult.cs (2)
19
Exception
= exception ?? throw new ArgumentNullException(nameof(exception));
31
Exception
= default;
9 references to Exception
Microsoft.AspNetCore.Components.Server (2)
Circuits\RemoteJSRuntime.cs (2)
69
Log.InvokeDotNetMethodException(_logger, invocationInfo, invocationResult.
Exception
);
74
errorMessage = invocationResult.
Exception
.ToString();
Microsoft.AspNetCore.Components.WebView (1)
Services\WebViewJSRuntime.cs (1)
45
: invocationResult.
Exception
.ToString();
Microsoft.JSInterop.Tests (5)
Infrastructure\DotNetDispatcherTest.cs (4)
694
Assert.Contains(nameof(ThrowingClass.ThrowingMethod), jsRuntime.LastCompletionResult.
Exception
.ToString());
716
Assert.Contains(nameof(ThrowingClass.AsyncThrowingMethod), jsRuntime.LastCompletionResult.
Exception
.ToString());
733
var exception = jsRuntime.LastCompletionResult.
Exception
;
749
var exception = jsRuntime.LastCompletionResult.
Exception
;
JSRuntimeTest.cs (1)
481
ResultError = invocationResult.Success ? null : new JSError(invocationInfo, invocationResult.
Exception
),
Microsoft.JSInterop.WebAssembly (1)
WebAssemblyJSRuntime.cs (1)
50
: dispatchResult.
Exception
!.ToString();