errfmt

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(err error) string

func NewUserFacingError

func NewUserFacingError(message string, cause error) error

Types

type UserFacingError

type UserFacingError struct {
	Message string
	Cause   error
}

UserFacingError forces a specific message, while preserving the underlying cause.

func (*UserFacingError) Error

func (e *UserFacingError) Error() string

func (*UserFacingError) Unwrap

func (e *UserFacingError) Unwrap() error

Jump to

Keyboard shortcuts

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