errors

package
v2.6.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package errors provides functionalities to manipulate errors for internal usage purpose.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsStackModeBrief

func IsStackModeBrief() bool

IsStackModeBrief returns whether current error stack mode is in brief mode.

Types

type StackMode

type StackMode string

StackMode is the mode that printing stack information in StackModeBrief or StackModeDetail mode.

const (
	// StackModeBrief specifies all error stacks printing no framework error stacks.
	StackModeBrief StackMode = "brief"

	// StackModeDetail specifies all error stacks printing detailed error stacks including framework stacks.
	StackModeDetail StackMode = "detail"
)

Jump to

Keyboard shortcuts

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