errors

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2024 License: Apache-2.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 Error

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

func New

func New(code, message string) *Error

func (*Error) Code

func (e *Error) Code() string

func (*Error) Error

func (e *Error) Error() string

Error method to implement the interface for errors.Error

func (*Error) Is

func (e *Error) Is(target error) bool

Is method to implement the interface for errors.Is

func (*Error) Message

func (e *Error) Message() string

func (*Error) WithParams

func (e *Error) WithParams(params ...interface{}) *Error

func (*Error) Wrap

func (e *Error) Wrap(err error) *Error

Jump to

Keyboard shortcuts

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