errors

package module
v0.0.0-...-6017b93 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: MIT Imports: 5 Imported by: 13

README

errors

A FAIRE.

Licence

MIT.


Copyright (c) 2021 mls-361.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func As

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

As AFAIRE.

func Is

func Is(err, target error) bool

Is AFAIRE.

func New

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

New AFAIRE.

func NotImplemented

func NotImplemented() error

NotImplemented AFAIRE.

func Unwrap

func Unwrap(err error) error

Unwrap AFAIRE.

func WithMessage

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

WithMessage AFAIRE.

func Wrap

func Wrap(sentinel, err error) error

Wrap AFAIRE.

Types

type Sentinel

type Sentinel string

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

func (Sentinel) Error

func (s Sentinel) Error() string

Error AFAIRE.

Jump to

Keyboard shortcuts

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