errors

package
v0.9.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WakuError

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

WakuError is an error that should be returned in the CLI for logging to format messages properly

func IsWakuError added in v0.5.1

func IsWakuError(err error) (*WakuError, bool)

func NewWakuErrorf

func NewWakuErrorf(format string, v ...any) *WakuError

NewWakuError creates a new WakuError

func ToWakuError added in v0.5.1

func ToWakuError(err error) *WakuError

func (*WakuError) Error

func (e *WakuError) Error() string

func (*WakuError) WithMeta added in v0.9.0

func (e *WakuError) WithMeta(key, val string) *WakuError

func (*WakuError) WithMetaf added in v0.9.0

func (e *WakuError) WithMetaf(key, format string, a ...any) *WakuError

Jump to

Keyboard shortcuts

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