errors

package
v0.19.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	CodeValidation uint32 = 2000
	MissingHash    uint32 = 2001
)

Base mesg codes.

View Source
const (
	// CodespaceMesg is a cosmos codespace for all mesg errors.
	CodespaceMesg = "mesg"
)

Variables

View Source
var (
	ErrMissingHash = sdkerrors.Register(CodespaceMesg, MissingHash, "bad request: missing hash")

	ErrValidation = sdkerrors.Register(CodespaceMesg, CodeValidation, "validation failed")
)

mesg errors

Functions

func NewMesgWrapError

func NewMesgWrapError(code uint32, err error) *sdkerrors.Error

NewMesgWrapError creates error with given code type and mesg codespace.

Types

This section is empty.

Jump to

Keyboard shortcuts

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