errors

package
v1.4.12 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 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

View Source
var F = Utils{}

可用函数

Functions

func SetErrorTypeMessageMap

func SetErrorTypeMessageMap(typeMessageMap map[Type]string)

必须在最开始设置

Types

type Error

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

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

type Utils added in v1.0.2

type Utils struct {
}

func (Utils) Equal added in v1.0.2

func (u Utils) Equal(err error, errType Type) bool

func (Utils) New added in v1.0.2

func (u Utils) New(errType Type, msg string) *Error

func (Utils) Wrap added in v1.0.2

func (u Utils) Wrap(err error) *Error

Jump to

Keyboard shortcuts

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