errors

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultErrWrap = func(errData ErrorData) error {
		errData.PrintErr = func() string {
			return fmt.Sprintf("error on `%s`: [%s]", errData.AWSOperation, errData.Err.Error())
		}
		return errData
	}
)

Functions

func GetAWSErrorCode added in v0.2.1

func GetAWSErrorCode(err error) string

Types

type ErrorData

type ErrorData struct {
	PrintErr     func() string
	FuncName     string
	AWSOperation string
	Err          error
}

func (ErrorData) Error added in v0.0.3

func (e ErrorData) Error() string

func (ErrorData) GetAWSErrCode added in v0.0.3

func (e ErrorData) GetAWSErrCode() string

type ErrorList added in v0.0.5

type ErrorList []error

func (ErrorList) Error added in v0.0.5

func (ee ErrorList) Error() string

Jump to

Keyboard shortcuts

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