internal

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	// Suggestions is a list of suggestions for the user.
	Suggestions []string

	// Timestamp is the timestamp of the error.
	Timestamp time.Time

	// Context is the context of the error.
	Context map[string]any

	// StackTrace is the stack trace of the error.
	StackTrace []string

	// Inner is the inner error of the error.
	Inner error
}

Info contains additional information about the error.

func NewInfo

func NewInfo() *Info

NewInfo creates a new Info.

Returns:

  • *Info: A pointer to the new Info. Never returns nil.

func (*Info) Copy

func (info *Info) Copy() *Info

Copy creates a shallow copy of the Info.

Returns:

  • *Info: A pointer to the new Info. Never returns nil.

func (*Info) IsNil

func (info *Info) IsNil() bool

IsNil implements the errors.Pointer interface.

Jump to

Keyboard shortcuts

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