errcat

package module
v0.0.0-...-e981e0f Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2016 License: Apache-2.0 Imports: 2 Imported by: 3

README

#errcat#

Package errcat implements some basic err concatenation and labeling functions.

Documentation

Overview

Package errcat implements some basic err concatenation and labeling functions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendErr

func AppendErr(e, err error) error

AppendErr appends an error (err) to another error (e) and returns a new error (e + err)

func AppendErrStr

func AppendErrStr(e error, str string) error

AppendErrStr appends the errLabel and a string (str) to an error (e) and returns a new error

func AppendInfoStr

func AppendInfoStr(e error, str string) error

AppendInfoStr appends the infoLabel and a string (str) to an error (e) and returns a new error

func AppendWarnStr

func AppendWarnStr(e error, str string) error

AppendWarnStr appends the warnLabel and a string (str) to an error (e) and returns a new error

func IsErr

func IsErr(e error) bool

IsErr checks to see if the error (e) contains the errLabel and returns the boolean response

func IsInfo

func IsInfo(e error) bool

IsInfo checks to see if the error (e) contains the infoLabel and returns the boolean response

func IsWarn

func IsWarn(e error) bool

IsWarn checks to see if the error (e) contains the warnLabel and returns the boolean response

Types

This section is empty.

Jump to

Keyboard shortcuts

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