errors

package
v1.10.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrCancelUpstreamKevent represents the error that is returned to denote that event is not going to be passed to upstream components such as aggregator or outputs
	ErrCancelUpstreamKevent = errors.New("cancel bubbling up the kernel event to upstream components")

	// ErrFeatureUnsupported is thrown when a certain feature was not triggered via the build flag
	ErrFeatureUnsupported = func(s string) error {
		return fmt.Errorf("fibratus was compiled without %s support. Please compile with the '%s' build flag", s, s)
	}

	// ErrHTTPServerUnavailable signals that the HTTP server is not running on the specified transport
	ErrHTTPServerUnavailable = func(transport string, err error) error {
		return fmt.Errorf("fibratus API server up and running on %s? %v", transport, err)
	}
)

Functions

func IsCancelUpstreamKevent

func IsCancelUpstreamKevent(err error) bool

IsCancelUpstreamKevent determines if the error being passed if of `ErrCancelUpstreamKevent` type.

func IsKparamNotFound

func IsKparamNotFound(err error) bool

IsKparamNotFound returns true if the error is KparamNotFound.

Types

type ErrKparamNotFound

type ErrKparamNotFound struct {
	Name string
}

ErrKparamNotFound is the error is thrown when a parameter is not present in the list of parameters

func (ErrKparamNotFound) Error

func (e ErrKparamNotFound) Error() string

Error returns the error message.

Jump to

Keyboard shortcuts

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