Help us shape the future of Go! Take the 2026 Go Developer Survey

errors

package
v1.20.3 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: Apache-2.0 Imports: 2 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrEmptyData gets returns when monitoring payload contained no data
	ErrEmptyData = errors.New("empty data")
	// ErrUnknownEventType is returned if the monitor event is an unknown type
	ErrUnknownEventType = errors.New("unknown event type")
	// ErrInvalidAgentMessageType is returned if an agent message is of invalid type
	ErrInvalidAgentMessageType = errors.New("invalid agent message type")
	// ErrEventSkipped is returned when an event was skipped (e.g. due to configuration
	// or incomplete data)
	ErrEventSkipped = errors.New("event was skipped")
)

Functions

func IsErrInvalidType

func IsErrInvalidType(err error) bool

IsErrInvalidType returns true if the given error is type of ErrInvalidType

func NewErrInvalidType

func NewErrInvalidType(invalidType byte) error

NewErrInvalidType returns a new ErrInvalidType

Types

type ErrInvalidType

type ErrInvalidType struct {
	// contains filtered or unexported fields
}

ErrInvalidType specifies when it was given a packet type that was not possible to be decoded by the decoder.

func (ErrInvalidType) Error

func (e ErrInvalidType) Error() string

Jump to

Keyboard shortcuts

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