errors

package module
v0.0.0-...-24ea6bd Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2022 License: MIT Imports: 4 Imported by: 22

README

errors

AFAIRE

Go Report Card Go Reference

Licence

MIT.


Copyright (c) 2021-2022 losyme

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func As

func As(err error, target interface{}) bool

func Is

func Is(err, target error) bool

func New

func New(msg string, kv ...interface{}) error

func NotImplemented

func NotImplemented() error

func Unwrap

func Unwrap(err error) error

func WithMessage

func WithMessage(err error, msg string, kv ...interface{}) error

func Wrap

func Wrap(sentinel, err error) error

Types

type Sentinel

type Sentinel string

See https://dave.cheney.net/2016/04/07/constant-errors

func (Sentinel) Error

func (s Sentinel) Error() string

Jump to

Keyboard shortcuts

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