eithererr

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnyBasicErrFirstOrEmpty added in v0.9.6

func AnyBasicErrFirstOrEmpty(
	basicErrors ...errcoreinf.BasicErrWrapper,
) *errorwrapper.Wrapper

AnyBasicErrFirstOrEmpty

OrNull Return which first wrapper which has error
Return null based

func AnyErrInfFirstOrEmpty added in v0.9.6

func AnyErrInfFirstOrEmpty(
	errInterfaces ...errcoreinf.BaseErrorOrCollectionWrapper,
) *errorwrapper.Wrapper

AnyErrInfFirstOrEmpty

OrNull Return which first wrapper which has error
Return null based

func AnyFirstOrEmpty added in v0.7.6

func AnyFirstOrEmpty(
	wrappers ...*errorwrapper.Wrapper,
) *errorwrapper.Wrapper

AnyFirstOrEmpty

OrNull Return which first wrapper which has error
Return null based

func ExecAllFunc added in v0.5.6

func ExecAllFunc(
	functions ...func() *errorwrapper.Wrapper,
) *[]*errorwrapper.Wrapper

ExecAllFunc runs all and returns the final error

func ExecAnyFunc added in v0.6.5

func ExecAnyFunc(
	functions ...func() *errorwrapper.Wrapper,
) *errorwrapper.Wrapper

ExecAnyFunc

either one of the function returns error first will block the other to execute and returns the first one

func Or

func Or(
	isCondition bool,
	trueWrapper,
	falseWrapper *errorwrapper.Wrapper,
) *errorwrapper.Wrapper

func OrCollectionPtr added in v0.3.6

func OrCollectionPtr(
	isCondition bool,
	trueWrappers,
	falseWrappers *errwrappers.Collection,
) *errwrappers.Collection

func OrEmpty added in v0.3.6

func OrEmpty(
	isCondition bool,
	trueWrapper *errorwrapper.Wrapper,
) *errorwrapper.Wrapper

func OrEmptyCollectionPtr added in v0.3.6

func OrEmptyCollectionPtr(
	isCondition bool,
	trueWrappers *errwrappers.Collection,
) *errwrappers.Collection

func WrapperOrFunc added in v0.6.5

func WrapperOrFunc(
	wrapper *errorwrapper.Wrapper,
	errWrapperFunc func() *errorwrapper.Wrapper,
) *errorwrapper.Wrapper

Types

This section is empty.

Jump to

Keyboard shortcuts

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