errint

package
v0.0.0-...-d0f7b5f Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package errint provides additional context for error messages that are the result of a programming error.

Index

Constants

This section is empty.

Variables

View Source
var SkipContext = false

SkipContext may be set to true during development to elide rigmarole.

Functions

func New

func New(s string) error

New creates an internal error from a string.

func Newf

func Newf(s string, vs ...interface{}) error

Newf creates an internal error from fmt.Errorf.

func Wrap

func Wrap(e error) error

Wrap wraps an error, flagging it as an internal error.

Types

type Internal

type Internal struct {
	// contains filtered or unexported fields
}

Internal represents an error resulting from bad programming. It includes context of what to do if such an error is encountered.

func (*Internal) Error

func (i *Internal) Error() string

func (*Internal) Unwrap

func (i *Internal) Unwrap() error

Unwrap returns the wrapped error.

Jump to

Keyboard shortcuts

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