spec

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorSpec

type ErrorSpec struct {
	Code        string   `toml:"code" json:"code"`
	Error       string   `toml:"error" json:"error"`
	Description string   `toml:"description" json:"description"`
	Tags        []string `toml:"tags" json:"tags"`
	Workaround  string   `toml:"workaround" json:"workaround"`
	// Used for indexes
	ExtraCode  string `toml:"extracode" json:"extracode"`
	ExtraError string `toml:"extraerror" json:"extraerror"`
}

ErrorSpec represents the standard error specification introduced by https://github.com/pingcap/tidb/blob/master/docs/design/2020-05-08-standardize-error-codes-and-messages.md

func (ErrorSpec) String

func (f ErrorSpec) String() string

String implements the fmt.Stringer interface

Jump to

Keyboard shortcuts

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