errors

package
v0.0.0-...-8072013 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: MIT Imports: 3 Imported by: 7

Documentation

Overview

Package errors contains the errors used by the bolt driver. Implements wrapped errors and stack traces

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

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

Error is the base error type adds stack trace and wrapping errors

func New

func New(msg string, args ...interface{}) *Error

New makes a new error

func Wrap

func Wrap(err error, msg string, args ...interface{}) *Error

Wrap wraps an error with a new error

func (*Error) Error

func (e *Error) Error() string

Error gets the error output

func (*Error) Inner

func (e *Error) Inner() error

Inner returns the inner error wrapped by this error

func (*Error) InnerMost

func (e *Error) InnerMost() error

InnerMost returns the innermost error wrapped by this error

Jump to

Keyboard shortcuts

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