errors

package
v0.0.0-...-ab6d3ba Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrGoNapcat = errors.New("go-napcat error")

	ErrUnknownEvent        = fmt.Errorf("%w: unknown event", ErrGoNapcat)
	ErrUnknownMessageEvent = fmt.Errorf("%w: unknown message event", ErrGoNapcat)
	ErrUnknownNoticeEvent  = fmt.Errorf("%w: unknown notice event", ErrGoNapcat)
	ErrUnknownRequestEvent = fmt.Errorf("%w: unknown request event", ErrGoNapcat)
	ErrUnknownMetaEvent    = fmt.Errorf("%w: unknown meta event", ErrGoNapcat)

	ErrUnknownResponse = fmt.Errorf("%w: unknown response", ErrGoNapcat)
	ErrUnknownAction   = fmt.Errorf("%w: unknown action", ErrGoNapcat)
	ErrApiResp         = fmt.Errorf("%w: api response", ErrGoNapcat)

	ErrInvalidMessage  = fmt.Errorf("%w: invalid message", ErrGoNapcat)
	ErrInvalidCQString = fmt.Errorf("%w: invalid CQ string", ErrGoNapcat)

	ErrExtensionAlreadyRegistered = fmt.Errorf("%w: extension already registered", ErrGoNapcat)
	ErrActionAlreadyRegistered    = fmt.Errorf("%w: action already registered", ErrGoNapcat)

	ErrUnsupportedOperation = fmt.Errorf("%w: unsupported operation", ErrGoNapcat)
	ErrTimeout              = fmt.Errorf("%w: timeout", ErrGoNapcat)

	ErrTypeAssertion = errors.New("type assertion failed")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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