errors

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(text string) error

New create new error

func NewWithCode

func NewWithCode(text string, code int) error

NewWithCode create new error

func Wrap

func Wrap(err error, code int) error

Wrap create new error

Types

type DError

type DError struct {
	// contains filtered or unexported fields
}

DError define

func (DError) Code

func (e DError) Code() int

Code get error code

func (DError) Error

func (e DError) Error() string

func (DError) String

func (e DError) String() string

Jump to

Keyboard shortcuts

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