errors

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

@Time : 2019-10-10 14:08 @Author : zr

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(err error, errType Type) bool

func SetErrorTypeMessageMap

func SetErrorTypeMessageMap(typeMessageMap map[Type]string)

必须在最开始设置

Types

type Error

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

func New

func New(errType Type) *Error

func Wrap

func Wrap(err error) *Error

func (*Error) Code

func (e *Error) Code() int

func (*Error) Error

func (e *Error) Error() string

func (*Error) Trace

func (e *Error) Trace() string

type Type

type Type int
const UnknownType Type = -1

Jump to

Keyboard shortcuts

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