errors

package
v1.2.32 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 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 {
	Err error  // base error (for errors.Is() and errors.As() calls)
	Ctx string // error context
}

Error is a wrapper for errors produced by (parts of) the Gospel implementation where variable error context is required for defined errors

func New

func New(err error, format string, args ...any) *Error

New creates a new Error instance

func (*Error) Error

func (e *Error) Error() string

Error returns a human-readble error description

func (*Error) Unwrap

func (e *Error) Unwrap() error

Unwrap error to standard type

Jump to

Keyboard shortcuts

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