Table of Contents

Class WebSocketException

Namespace
OpenQA.Selenium.Safari.Internal
Assembly
WebDriver.dll

Provides a base exception for WebSocket errors.

public class WebSocketException : Exception, ISerializable
Inheritance
WebSocketException
Implements
Inherited Members

Constructors

WebSocketException()

Initializes a new instance of the WebSocketException class.

public WebSocketException()

WebSocketException(int)

Initializes a new instance of the WebSocketException class with a specified status code.

public WebSocketException(int statusCode)

Parameters

statusCode int

The status code of the exception.

WebSocketException(int, string)

Initializes a new instance of the WebSocketException class with a specified status code and error message.

public WebSocketException(int statusCode, string message)

Parameters

statusCode int

The status code of the exception.

message string

The message for the exception.

WebSocketException(int, string, Exception)

Initializes a new instance of the WebSocketException class with a specified status code, error message, and a reference to the inner exception that is the cause of this exception.

public WebSocketException(int statusCode, string message, Exception innerException)

Parameters

statusCode int

The status code for the exception.

message string

The message for the exception.

innerException Exception

The inner exception that is the cause of this exception.

WebSocketException(SerializationInfo, StreamingContext)

Initializes a new instance of the WebSocketException class with serialized data.

protected WebSocketException(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The object that holds the serialized object data.

context StreamingContext

The contextual information about the source or destination.

WebSocketException(string)

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

public WebSocketException(string message)

Parameters

message string

The message for the exception.

WebSocketException(string, Exception)

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

public WebSocketException(string message, Exception innerException)

Parameters

message string

The message for the exception.

innerException Exception

The inner exception that is the cause of this exception.

Properties

StatusCode

Gets the status code.

public int StatusCode { get; }

Property Value

int

Methods

GetObjectData(SerializationInfo, StreamingContext)

Sets the SerializationInfo with information about the exception.

public override void GetObjectData(SerializationInfo info, StreamingContext context)

Parameters

info SerializationInfo

The SerializationInfo that holds the serialized object data about the exception being thrown.

context StreamingContext

The StreamingContext that contains contextual information about the source or destination.