Categorygithub.com/muir/commonerrors
modulepackage
0.0.2
Repository: https://github.com/muir/commonerrors.git
Documentation: pkg.go.dev

# README

commonerrors - tags for common causes of errors

GoDoc report card

Install:

go get github.com/muir/commonerrors

Idea

Commonerrors is a collection of error tags.

It offers:

  • UsageError
  • EnvironmentError
  • ConfigurationError
  • ProgrammerError
  • LibraryError

Basis

Right now, this package is based on github.com/pkg/errors. That package's support of WithStack is a bit broken so the base error package could change in the future.

# Functions

ConfigurationError annotates an error as being a configuration error (messed up flags/command invocation).
EnvironmentError annotates an error as being caused by an invalid environment variable.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
LibraryError annotates an error as being caused by a bug in an imported library.
ProgrammerError annotates an error as being made by a user (importer) or a published package.
UsageError annotates an error as being a usage error (messed up flags/command invocation).
ValidationError annotates an error as being caused by an invalid value.