errwrap

package
v2.18.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hide

func Hide(err error, msg string) error

Hide wraps an error with a message, hiding the original error. This is useful when you want to provide a user-friendly message without exposing the underlying error details. The original error can still be accessed via the Unwrap method (so errors.Is and errors.As work as expected).

Types

This section is empty.

Jump to

Keyboard shortcuts

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