errorx

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

* @Author: reel * @Date: 2023-06-04 22:09:34 * @LastEditors: reel * @LastEditTime: 2023-06-04 22:09:36 * @Description: 请填写简介

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error interface {
	error

	Format() string
	// contains filtered or unexported methods
}

func Errorf

func Errorf(format string, args ...interface{}) Error

格式化生成一个错误

func New

func New(msg string) Error

生成一个错误

func NewWithStack

func NewWithStack(msg string) Error

func WithStack

func WithStack(err error) Error

给错误添加堆栈信息

func Wrap

func Wrap(err error, msg string) Error

给错误添加额外信息

func WrapWithStack

func WrapWithStack(err error, msg string) Error

Jump to

Keyboard shortcuts

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