errdefer

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseFile

func CloseFile(
	location string,
	existingErrorWrapper *errorwrapper.Wrapper,
	osFile *os.File,
) *errorwrapper.Wrapper

func CloseFileHandlePanic

func CloseFileHandlePanic(
	location string,
	existingErrorWrapper *errorwrapper.Wrapper,
	osFile *os.File,
)

func CloseFileHandlerFunc

func CloseFileHandlerFunc(
	location string,
	existingErrorWrapper *errorwrapper.Wrapper,
	osFile *os.File,
	handlerFunc func(errorWrapper *errorwrapper.Wrapper),
)

func CloseFileLoggerFunc

func CloseFileLoggerFunc(
	location string,
	existingErrorWrapper *errorwrapper.Wrapper,
	osFile *os.File,
	loggerFunc func(errorWrapper *errorwrapper.Wrapper),
)

func CloseFileUsingErrorCollection

func CloseFileUsingErrorCollection(
	location string,
	errorCollection *errwrappers.Collection,
	osFile *os.File,
) (isSuccess bool)

func Error

func Error(
	existingErrorWrapper *errorwrapper.Wrapper,
	errType errtype.Variation,
	err error,
) *errorwrapper.Wrapper

func ErrorMessagesUsingCollectionFunc

func ErrorMessagesUsingCollectionFunc(
	errorCollection *errwrappers.Collection,
	errType errtype.Variation,
	errorFunc func() error,
	messages ...string,
) (isSuccess bool)

func ErrorMessagesUsingFunc

func ErrorMessagesUsingFunc(
	existingErrorWrapper *errorwrapper.Wrapper,
	errType errtype.Variation,
	errorFunc func() error,
	messages ...string,
) *errorwrapper.Wrapper

func ErrorUsingCollection

func ErrorUsingCollection(
	errorCollection *errwrappers.Collection,
	errType errtype.Variation,
	err error,
)

func ErrorUsingFunc

func ErrorUsingFunc(
	existingErrorWrapper *errorwrapper.Wrapper,
	errType errtype.Variation,
	errorFunc func() error,
) *errorwrapper.Wrapper

func ErrorWithMessages

func ErrorWithMessages(
	existingErrorWrapper *errorwrapper.Wrapper,
	errType errtype.Variation,
	err error,
	messages ...string,
) *errorwrapper.Wrapper

func ErrorWithMessagesUsingCollection

func ErrorWithMessagesUsingCollection(
	errorCollection *errwrappers.Collection,
	errType errtype.Variation,
	err error,
	messages ...string,
) (isSuccess bool)

func ErrorWrapperFunc

func ErrorWrapperFunc(
	existingErrorWrapper *errorwrapper.Wrapper,
	errWrapperFunc errfunc.WrapperFunc,
) *errorwrapper.Wrapper

func ErrorWrapperFuncUsingCollection

func ErrorWrapperFuncUsingCollection(
	errorCollection *errwrappers.Collection,
	errWrapperFunc errfunc.WrapperFunc,
) (isSuccess bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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