11 instantiations of HubException
Microsoft.AspNetCore.SignalR.Client.Core (4)
HubConnection.cs (2)
1716throw new HubException( 1840connectionState.CloseException = new HubException($"The server closed the connection with the following error: {closeMessage.Error}");
Internal\InvocationRequest.cs (2)
116Fail(new HubException(completionMessage.Error)); 189Fail(new HubException(completionMessage.Error));
Microsoft.AspNetCore.SignalR.Core (6)
HubConnectionHandler.cs (1)
283disconnectException = new HubException(connection.CloseMessage.Error);
Internal\DefaultHubDispatcher.cs (3)
398var ex = new HubException($"Client sent {clientStreamLength} stream(s), Hub method expects {serverStreamLength}."); 704throw new HubException($"Unknown hub method '{hubMethodName}'"); 913throw new HubException("Method does not exist.");
src\aspnetcore\src\SignalR\common\Shared\ClientResultsManager.cs (1)
30tcs.SetException(new HubException(completionMessage.Error));
StreamTracker.cs (1)
81converter.TryComplete(message.HasResult || message.Error == null ? null : new HubException(message.Error));
Microsoft.AspNetCore.SignalR.StackExchangeRedis (1)
src\aspnetcore\src\SignalR\common\Shared\ClientResultsManager.cs (1)
30tcs.SetException(new HubException(completionMessage.Error));
17 references to HubException
Microsoft.AspNetCore.SignalR.Client.Core (1)
HubConnection.cs (1)
1740catch (HubException)
Microsoft.AspNetCore.SignalR.Common (5)
HubException.cs (5)
14/// of exceptions that occur on the server to the client. However, instances of <see cref="HubException"/> <b>are</b> sent to the client. 20/// Initializes a new instance of the <see cref="HubException"/> class. 27/// Initializes a new instance of the <see cref="HubException"/> class 36/// Initializes a new instance of the <see cref="HubException"/> class 46/// Initializes a new instance of the <see cref="HubException"/> class.
Microsoft.AspNetCore.SignalR.Core (2)
Internal\DefaultHubDispatcher.cs (1)
398var ex = new HubException($"Client sent {clientStreamLength} stream(s), Hub method expects {serverStreamLength}.");
Internal\ErrorMessageHelper.cs (1)
10if (exception is HubException || includeExceptionDetails)
Microsoft.AspNetCore.SignalR.Specification.Tests (9)
HubLifetimeManagerTestBase.cs (3)
223var ex = await Assert.ThrowsAsync<HubException>(() => resultTask).DefaultTimeout(); 362await Assert.ThrowsAsync<HubException>(() => invoke1).DefaultTimeout();
ScaleoutHubLifetimeManagerTests.cs (6)
524var ex = await Assert.ThrowsAsync<HubException>(() => resultTask).DefaultTimeout(); 575var ex = await Assert.ThrowsAsync<HubException>(() => invoke1).DefaultTimeout(); 656var ex = await Assert.ThrowsAsync<HubException>(() => resultTask).DefaultTimeout();