xerror

package
v0.0.0-...-d2b8996 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2019 License: BSD-3-Clause Imports: 5 Imported by: 2

Documentation

Index

Constants

View Source
const (
	ER_UNKNOWN int = 1000
)

Error type

Variables

View Source
var Errors = map[int]*Error{
	ER_UNKNOWN: {Num: ER_UNKNOWN, State: "T0000", Message: "unknown.error"},
}

Errors -- the jump table of error.

Functions

This section is empty.

Types

type Error

type Error struct {
	Num     int
	State   string
	Message string
	// contains filtered or unexported fields
}

Error -- the error structure returned from calling.

func NewError

func NewError(table map[int]*Error, number int, args ...interface{}) *Error

NewError -- creates new Error.

func (*Error) Error

func (e *Error) Error() string

Error -- implements the error interface.

func (*Error) Format

func (e *Error) Format(s fmt.State, verb rune)

Format -- implements the error interface.

Jump to

Keyboard shortcuts

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