Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
HubException Class
Definition
- Namespace:
- Microsoft.AspNetCore.SignalR
- Assembly:
- Microsoft.AspNetCore.SignalR.Common.dll
- Package:
- Microsoft.AspNetCore.SignalR.Common v10.0.0
- Package:
- Microsoft.AspNetCore.SignalR.Common v11.0.0-preview.4.26230.115
- Package:
- Microsoft.AspNetCore.SignalR.Common v1.0.0
- Package:
- Microsoft.AspNetCore.SignalR.Common v1.1.0
- Package:
- Microsoft.AspNetCore.SignalR.Common v3.0.3
- Package:
- Microsoft.AspNetCore.SignalR.Common v3.1.18
- Package:
- Microsoft.AspNetCore.SignalR.Common v5.0.9
- Package:
- Microsoft.AspNetCore.SignalR.Common v6.0.6
- Package:
- Microsoft.AspNetCore.SignalR.Common v7.0.5
- Package:
- Microsoft.AspNetCore.SignalR.Common v8.0.19
- Package:
- Microsoft.AspNetCore.SignalR.Common v9.0.8
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
- Source:
- HubException.cs
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The exception thrown from a hub when an error occurs.
public ref class HubException : Exception
[System.Serializable]
public class HubException : Exception
public class HubException : Exception
[<System.Serializable>]
type HubException = class
inherit Exception
type HubException = class
inherit Exception
Public Class HubException
Inherits Exception
- Inheritance
-
HubException
- Attributes
Remarks
Exceptions often contain sensitive information, such as connection information. Because of this, SignalR does not expose the details of exceptions that occur on the server to the client. However, instances of HubExceptionare sent to the client.
Constructors
| Name | Description |
|---|---|
| HubException() |
Initializes a new instance of the HubException class. |
| HubException(SerializationInfo, StreamingContext) |
Obsolete.
Initializes a new instance of the HubException class. |
| HubException(String, Exception) |
Initializes a new instance of the HubException class with a specified error message and a reference to the inner exception that is the cause of this exception. |
| HubException(String) |
Initializes a new instance of the HubException class with a specified error message. |
Applies to
Feedback
Was this page helpful?
