errors

package
v0.0.0-...-fab57c2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package errors provides a mockable wrapper for errors.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct{}

func (*Impl) As

func (*Impl) As(err error, target any) bool

func (*Impl) Is

func (*Impl) Is(err error, target error) bool

func (*Impl) New

func (*Impl) New(text string) error

func (*Impl) Unwrap

func (*Impl) Unwrap(err error) error

type Interface

type Interface interface {
	As(err error, target any) bool
	Is(err error, target error) bool
	New(text string) error
	Unwrap(err error) error
}

Jump to

Keyboard shortcuts

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