errors

package
v0.4.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrUnsupportedProtocol occurs when trying to use protocol that is not supported.
	ErrUnsupportedProtocol = errors.New("only unix, tcp/tcp4/tcp6, udp/udp4/udp6 are supported")
	// ErrUnsupportedTCPProtocol occurs when trying to use an unsupported TCP protocol.
	ErrUnsupportedTCPProtocol = errors.New("only tcp/tcp4/tcp6 are supported")
	// ErrUnsupportedUDPProtocol occurs when trying to use an unsupported UDP protocol.
	ErrUnsupportedUDPProtocol = errors.New("only udp/udp4/udp6 are supported")
	// ErrNoIPv4AddressOnInterface occurs when an IPv4 multicast address is set on an interface but IPv4 is not configured.
	ErrNoIPv4AddressOnInterface = errors.New("no IPv4 address on interface")
	// ErrNotSupported occurs when not supported feature is used.
	ErrNotSupported = errors.New("not supported")
	// ErrSkippable indicates an error that can be skipped and not handled as an usual flow breaking error.
	ErrSkippable = errors.New("skippable")
	// ErrIsEmpty indicates that data holder, data magazine or buffer is empty.
	ErrIsEmpty = errors.New("is empty")
	// ErrConnectionAlreadyClosed when trying to close already closed connection.
	ErrConnectionAlreadyClosed = errors.New("connection already closed")
	// ErrConnectionAlreadyClosed when trying to work with closed connection.
	ErrConnectionClosed = errors.New("connection closed")
	// ErrOpNotAvailableInMode occurs when trying to run operation that is not available in current mode.
	ErrOpNotAvailableInMode = errors.New("op is not available in mode")
	// ErrConnectionQueueIsNil occurs when trying to access connection queue that is not initialized.
	ErrConnectionQueueIsNil = errors.New("connection queue is nil")
	// ErrUnknownConnectionState occurs when connection state is unknown.
	ErrUnknownConnectionState = errors.New("unknown connection state")
	// ErrInvalidTimeDuration occure when specyfied time duration is not valid.
	ErrInvalidTimeDuration = errors.New("invalid time duration")
	// ErrInvalidState occurs when operation is called in invalid state.
	ErrInvalidState = errors.New("invalid state")
	// ErrAddressNotFound occurs when network address of fd could not be found.
	ErrAddressNotFound = errors.New("address could not be found")
	// ErrServerAlreadyRunning occurs when trying to start already running server.
	ErrServerAlreadyRunning = errors.New("server already running")
)

Functions

func ErrorAddressNotFound

func ErrorAddressNotFound(fd int) error

func ErrorOpNotAvailableInMode

func ErrorOpNotAvailableInMode(op, mode string) error

func ErrorUnknownConnectionState

func ErrorUnknownConnectionState(state int) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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