errors2

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

@Time : 2019-11-11 13:43 @Author : zr

Index

Constants

This section is empty.

Variables

View Source
var (
	//功能集
	U = Utils{}
)

Functions

This section is empty.

Types

type ErrorType

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

type StdError

type StdError struct {
	*ErrorType
	// contains filtered or unexported fields
}

func (*StdError) Code

func (s *StdError) Code() int

func (*StdError) DebugMessage

func (s *StdError) DebugMessage() string

func (*StdError) Error

func (s *StdError) Error() string

func (*StdError) Trace

func (s *StdError) Trace() string

type Utils

type Utils struct {
}

func (Utils) FromError

func (Utils) FromError(err error, errorType *ErrorType) (stdErr *StdError)

func (Utils) NewErrorType

func (Utils) NewErrorType(code int, showMsg, debugMsg string) *ErrorType

func (Utils) NewStdError

func (Utils) NewStdError(errorType *ErrorType, msg string) *StdError

Jump to

Keyboard shortcuts

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