errors

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorBuilder

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

func New

func New() *ErrorBuilder

func (*ErrorBuilder) Error added in v0.6.3

func (b *ErrorBuilder) Error(ctx context.Context, msg string, metaKeyValues ...any) error

func (*ErrorBuilder) ErrorCode

func (b *ErrorBuilder) ErrorCode(code string) *ErrorBuilder

func (*ErrorBuilder) Errorf

func (b *ErrorBuilder) Errorf(ctx context.Context, format string, args ...any) error

func (*ErrorBuilder) Tags

func (b *ErrorBuilder) Tags(tag ...string) *ErrorBuilder

func (*ErrorBuilder) Wrap added in v0.6.3

func (b *ErrorBuilder) Wrap(ctx context.Context, err error, msg string, metaKeyValues ...any) error

func (*ErrorBuilder) Wrapf

func (b *ErrorBuilder) Wrapf(ctx context.Context, err error, format string, args ...any) error

Jump to

Keyboard shortcuts

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