HubException Class

  • java.lang.Object
    • java.lang.Throwable
      • java.lang.Exception
        • java.lang.RuntimeException
          • com.microsoft.signalr.HubException

public class HubException extends RuntimeException

An exception thrown when the server fails to invoke a Hub method.

Constructor Summary

Constructor Description
HubException()

Initializes a new instance of the HubException class.

HubException(String errorMessage)

Initializes a new instance of the HubException class with a specified error message.

HubException(String errorMessage, Exception innerException)

Initializes a new instance of the HubException class with a specified error message and a reference to the exception that is the cause of this exception.

Inherited Members

java.lang.Object.clone() java.lang.Object.equals(java.lang.Object) java.lang.Object.finalize() java.lang.Object.getClass() java.lang.Object.hashCode() java.lang.Object.notify() java.lang.Object.notifyAll() java.lang.Object.wait() java.lang.Object.wait(long) java.lang.Object.wait(long,int) java.lang.Throwable.addSuppressed(java.lang.Throwable) java.lang.Throwable.fillInStackTrace() java.lang.Throwable.getCause() java.lang.Throwable.getLocalizedMessage() java.lang.Throwable.getMessage() java.lang.Throwable.getStackTrace() java.lang.Throwable.getSuppressed() java.lang.Throwable.initCause(java.lang.Throwable) java.lang.Throwable.printStackTrace() java.lang.Throwable.printStackTrace(java.io.PrintStream) java.lang.Throwable.printStackTrace(java.io.PrintWriter) java.lang.Throwable.setStackTrace(java.lang.StackTraceElement[]) java.lang.Throwable.toString()

Constructor Details

HubException

public HubException()

Initializes a new instance of the HubException class.

HubException

public HubException(String errorMessage)

Initializes a new instance of the HubException class with a specified error message.

Parameters:

errorMessage - The error message that explains the reason for the exception.

HubException

public HubException(String errorMessage, Exception innerException)

Initializes a new instance of the HubException class with a specified error message and a reference to the exception that is the cause of this exception.

Parameters:

errorMessage - The error message that explains the reason for the exception.
innerException - The exception that is the cause of the current exception, or null if no inner exception is specified.

Applies to