WebSocketConnectionException

open class WebSocketConnectionException(val url: String, val httpStatusCode: Int? = null, val additionalInfo: String? = null, message: String = defaultMessage(url, httpStatusCode, additionalInfo), cause: Throwable? = null) : WebSocketException(source)

An exception thrown when something went wrong during the web socket connection.

Inheritors

Constructors

Link copied to clipboard
constructor(url: String, httpStatusCode: Int? = null, additionalInfo: String? = null, message: String = defaultMessage(url, httpStatusCode, additionalInfo), cause: Throwable? = null)

Properties

Link copied to clipboard
val additionalInfo: String? = null
Link copied to clipboard
open val cause: Throwable?
Link copied to clipboard
val httpStatusCode: Int? = null

The status code in the HTTP response from the handshake request, if available.

Link copied to clipboard
open val message: String?
Link copied to clipboard
val url: String

The target URL of the failed connection.