Mint.WebSocketError exception (MintWebSocket v0.1.0) View Source

Represents an error in the WebSocket protocol

The Mint.WebSocketError struct is an exception, so it can be raised as any other exception.

Link to this section Summary

Link to this section Types

Specs

t() :: %Mint.WebSocketError{
  __exception__: term(),
  reason:
    (:extended_connect_disabled
     | :connection_not_upgraded
     | :payload_too_large
     | {:extension_not_negotiated, Mint.WebSocket.Extension.t()})
    | term()
}