ecode

package
v0.0.0-...-5381133 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EqualError

func EqualError(code ecode.Codes, err error) bool

EqualError equal error

Types

type Code

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

Code error struct

func NewECode

func NewECode(msgs ...string) *Code

Int parse code int to error.

func (Code) Code

func (e Code) Code() int

Code return error code

func (Code) Details

func (e Code) Details() []interface{}

Details return details.

func (Code) Equal

func (e Code) Equal(err error) bool

Equal for compatible. Deprecated: please use ecode.EqualError.

func (Code) Error

func (e Code) Error() string

Error return error message

func (Code) Message

func (e Code) Message() string

Message return error message

Jump to

Keyboard shortcuts

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