errors

package
v0.0.0-...-2910145 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package errors 提供用于内部使用目的的错误处理功能。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsStackModeBrief

func IsStackModeBrief() bool

IsStackModeBrief 返回当前错误堆栈模式是否处于简洁模式。

Types

type StackMode

type StackMode string

StackMode 是打印堆栈信息的模式,可在 StackModeBrief(简要模式)或 StackModeDetail(详细模式)中选择。

const (
	// StackModeBrief 指定错误堆栈打印时,不包含框架内部的错误堆栈信息。
	StackModeBrief StackMode = "brief"

	// StackModeDetail 指定打印所有错误堆栈,包括框架堆栈的详细错误堆栈。
	StackModeDetail StackMode = "detail"
)

Jump to

Keyboard shortcuts

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