Error Type

Union cases

Union case Description

ConnectionError string

Full Usage: ConnectionError string

Parameters:
    Item : string

Represents an IO/network error; to be used when we do not have a SocketError but just an error message; like in libuv calls.

Item : string

InputDataError dataError

Full Usage: InputDataError dataError

Parameters:
    dataError : int option * string

Denotes either that Suave could not interpret the data sent on the socket or that the data sent on the socket did not conform to the relevant specification (TCP/HTTP/1.1/SSE/WebSocket etc). For a HTTP socket user this means a response of '400 Bad Request', or for example WebSockets would abort the connection. You can specify `Some statusCode` as response status code. If `None` status code 400 will be used.

dataError : int option * string

SocketError error

Full Usage: SocketError error

Parameters:

IO/Network/Checksum errors

error : SystemSocketError

Instance members

Instance member Description

this.IsConnectionError

Full Usage: this.IsConnectionError

Returns: bool
Returns: bool

this.IsInputDataError

Full Usage: this.IsInputDataError

Returns: bool
Returns: bool

this.IsSocketError

Full Usage: this.IsSocketError

Returns: bool
Returns: bool