status

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Copyright 2017-2018 OneLedger

Common errors across the entire system

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func String added in v0.7.1

func String(code Code) string

TODO: Code should be a real type, so that String really works? func (code Code) String() string {

Types

type Code

type Code = uint32 // Alias to match Tendermint status
const (
	SUCCESS           Code = 0
	INVALID           Code = 101
	INVALID_SIGNATURE Code = 102
	PARSE_ERROR       Code = 201
	NOT_IMPLEMENTED   Code = 301
	MISSING_VALUE     Code = 401
	EXPAND_ERROR      Code = 501
	DUPLICATE         Code = 601
	MISSING_DATA      Code = 701
	BAD_VALUE         Code = 801
	EXECUTE_ERROR     Code = 901
)

Jump to

Keyboard shortcuts

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