errors

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 19, 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 TError

type TError struct {
	Message []string
}

TError is a struct that implements the TraceableError interface.

func New

func New(message string) *TError

func (*TError) Error

func (e *TError) Error() string

Implement the error interface.

func (*TError) From

func (e *TError) From(message string) TraceableError

func (*TError) Last

func (e *TError) Last() string

type TraceableError

type TraceableError interface {
	error
	From(message string) TraceableError
	Last() string
}

TraceableError can help trace the origin of an error.

Jump to

Keyboard shortcuts

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