cosmoserror

package
v0.27.2 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInternal       = errors.New("internal error")
	ErrInvalidRequest = errors.New("invalid request")
	ErrNotFound       = errors.New("not found")
)

Functions

func IsNotFound added in v0.26.0

func IsNotFound(err error) bool

IsNotFound returns if the given error is "not found".

func Unwrap

func Unwrap(err error) error

Unwrap checks if an error contains a given grpc error code and returns the corresponding simple error type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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