errors

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

README

errors

just another error wrapper

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorWithStatus

type ErrorWithStatus interface {
	error
	ExitStatus() int
	IsSkipPrintMessage() bool
	SetError(err error) ErrorWithStatus
	SkipMessage() ErrorWithStatus
	SetPrintMessage() ErrorWithStatus
	SetExitStatus(status int) ErrorWithStatus
}

func NeedExit

func NeedExit(err error) (ErrorWithStatus, bool)

func NewError

func NewError() ErrorWithStatus

func NewErrorWithFrames

func NewErrorWithFrames(err error) ErrorWithStatus

func NewErrorWithStatus

func NewErrorWithStatus(err error, status int, skipMessage bool) ErrorWithStatus

func NewErrorf

func NewErrorf(str string, v ...interface{}) ErrorWithStatus

func NewErrorfStatus

func NewErrorfStatus(status int, str string, v ...interface{}) ErrorWithStatus

Jump to

Keyboard shortcuts

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