usererr

package
v0.7.15 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: MIT Imports: 0 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 wraps a Go error with a user-facing message. Error() delegates to the wrapped error. UserMessage() returns human-friendly text (may be capitalized, punctuated).

func New

func New(userMsg string, err error) *Error

New wraps err with a user-facing message.

func (*Error) Error

func (e *Error) Error() string

func (*Error) Unwrap

func (e *Error) Unwrap() error

Unwrap returns the underlying error.

func (*Error) UserMessage

func (e *Error) UserMessage() string

UserMessage returns the user-facing message.

Jump to

Keyboard shortcuts

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