xerr

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(s string) error

New creates a new string backed error struct and returns it. This error struct does not support Unwrapping.

The resulting structs created will be comparable.

func Wrap

func Wrap(s string, e error) error

Wrap creates a new error that wraps the specified error. If not nil, this function will append ": " + 'Error()' to the resulting string message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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