internal

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2025 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	// contains filtered or unexported fields
}

Error represents an error with a message and a trace. It is a custom struct that can be used to wrap errors with additional information.

func NewErr

func NewErr(msg string) *Error

NewErr creates a new Error instance with the given message. It is a helper function that simplifies the creation of Error instances in other packages.

func (*Error) Error

func (e *Error) Error() string

Error returns the error message. If the error has a trace, it is appended to the message. The error implements the error interface.

func (*Error) With

func (e *Error) With(err error) *Error

With adds an error as a trace to the error. It is a helper function that simplifies the addition of traces to Error instances in other packages.

func (*Error) Withf

func (e *Error) Withf(tmpl string, args ...any) *Error

Withf adds a formatted error message as a trace to the error. It is a helper function that simplifies the addition of formatted traces to Error instances in other packages.

Directories

Path Synopsis
base64url package provides a way to encode and decode data using a modified base64 encoding scheme that is safe for URLs.
base64url package provides a way to encode and decode data using a modified base64 encoding scheme that is safe for URLs.

Jump to

Keyboard shortcuts

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