errors

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(codespace string, errorcode uint32, description string, params ...Param) *sdkerrors.Error

Types

type Err

type Err struct {
	Description string            `json:"description"`
	Codespace   string            `json:"codespace"`
	Params      map[string]string `json:"params,omitempty"`
}

type Param

type Param struct {
	Key   string
	Value string
}

func NewParam

func NewParam(key, value string) Param

Jump to

Keyboard shortcuts

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