berror

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetECode

func GetECode(err error) *bcode.BCode

GetECode - 获取详细错误信息

func NewError

func NewError(code bcode.BCode, text ...string) error

NewError - 创建新的错误

func NewErrorHasError

func NewErrorHasError(code bcode.BCode, errorData error, text ...string) error

NewErrorHasError - 创建新的错误并且携带 berror 信息

Types

type IError

type IError interface {
	// contains filtered or unexported methods
}

IError

基本报错

type XError

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

XError

报错结构体

用于处理自定义报错的输出内容信息

func (*XError) Error

func (e *XError) Error() string

Error - 自定义报错处理

Jump to

Keyboard shortcuts

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