errors

package
v0.0.0-...-c607702 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2025 License: AGPL-3.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthError

type AuthError struct {
	StatusCode int
}

AuthError is returned when the client fails to authenticate with the server.

func (AuthError) Error

func (a AuthError) Error() string

type ClosedError

type ClosedError struct {
	Err error // Can be nil
}

ClosedError is returned when the client attempts to use a closed connection.

func (ClosedError) Error

func (c ClosedError) Error() string

func (ClosedError) Unwrap

func (c ClosedError) Unwrap() error

type ConfigError

type ConfigError struct {
	Field  string
	Reason string
}

ConfigError is returned when a configuration field is invalid.

func (ConfigError) Error

func (c ConfigError) Error() string

type ConnectError

type ConnectError struct {
	Err error
}

ConnectError is returned when the client fails to connect to the server.

func (ConnectError) Error

func (c ConnectError) Error() string

func (ConnectError) Unwrap

func (c ConnectError) Unwrap() error

type DialError

type DialError struct {
	Message string
}

DialError is returned when the server rejects the client's dial request. This applies to both TCP and UDP.

func (DialError) Error

func (c DialError) Error() string

type ProtocolError

type ProtocolError struct {
	Message string
}

ProtocolError is returned when the server/client runs into an unexpected or malformed request/response/message.

func (ProtocolError) Error

func (p ProtocolError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL