Share via


HubException Class

Definition

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

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