errors

package module
v0.0.0-...-08634cc Latest Latest
Warning

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

Go to latest
Published: May 8, 2019 License: MIT Imports: 2 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

errors

Documentation

Overview

Package errors represents the interface (and its implementations) of handling errors.

Index

Constants

This section is empty.

Variables

View Source
var ErrorFatal = errors.New("fatal error")

ErrorFatal the typification to declarative indicate a fatal error.

Functions

This section is empty.

Types

type ErrorManager

type ErrorManager interface {
	New(message string) error
	Wrap(err error, message string) error
	Cause(err error) error
	WithStack(err error) error
	ShortMessage(err error) string
	FullMessage(err error) string
	StackTrace(err error) stack.Stack
	WithMessage(err error, message string) error
	Errorf(format string, args ...interface{}) error
	Wrapf(err error, format string, args ...interface{}) error
	WithMessagef(err error, format string, args ...interface{}) error
}

ErrorManager provides an interface for handle the error.

Directories

Path Synopsis
Package pkg represents the interface errors.ErrorManager implementation.
Package pkg represents the interface errors.ErrorManager implementation.

Jump to

Keyboard shortcuts

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