errors

package
v1.17.3 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package errors provides more features that extend go standard errors library

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func As

func As(err error, target any) bool

func Is

func Is(err, target error) bool

func New

func New(text string) error

func Unwrap

func Unwrap(err error) error

func WithCause

func WithCause(err error, cause error) error

WithCause returns an error wrap a cause

func WithDetail

func WithDetail(e error, detail string) error

WithDetail returns an error with detailed text

func Wrap

func Wrap(e error, prefix string) error

Wrap returns an error with prefix

Types

This section is empty.

Jump to

Keyboard shortcuts

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