errwrappers

package
v1.1.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DisplayJoiner = "\n-----------------------------\n"
)

Variables

View Source
var (
	Deserialize    = newDeserializeCreator{} // Deserialize from payload to error collection
	ErrorInterface = newErrorInterfaceToCollection{}
)

Functions

This section is empty.

Types

type Collection

type Collection struct {
	// contains filtered or unexported fields
}

func Empty

func Empty() *Collection

func New

func New(capacity int) *Collection

func NewCap1 added in v0.3.0

func NewCap1() *Collection

func NewCap2 added in v0.3.0

func NewCap2() *Collection

func NewCap3 added in v0.3.0

func NewCap3() *Collection

func NewCap4 added in v0.3.0

func NewCap4() *Collection

func NewUsingCollections added in v0.3.3

func NewUsingCollections(
	errorCollectionOfCollections ...*Collection,
) *Collection

func NewUsingCollectionsPtr added in v0.3.3

func NewUsingCollectionsPtr(
	errorCollectionOfCollections *[]*Collection,
) *Collection

func NewUsingErrorWrapperOrFunc added in v0.9.7

func NewUsingErrorWrapperOrFunc(
	existingErrorWrapper *errorwrapper.Wrapper,
	executorFunc func() *errorwrapper.Wrapper,
) *Collection

func NewUsingErrorWrappers added in v0.3.0

func NewUsingErrorWrappers(
	errWrappers ...*errorwrapper.Wrapper,
) *Collection

NewUsingErrorWrappers

Don't clone the items, just adds those

func NewUsingErrorWrappersClone added in v0.9.6

func NewUsingErrorWrappersClone(
	errWrappers []*errorwrapper.Wrapper,
) *Collection

NewUsingErrorWrappersClone

Clone and add items to the collection

func NewUsingErrorWrappersPtr added in v0.3.0

func NewUsingErrorWrappersPtr(
	isMakeClone bool,
	errWrappers []*errorwrapper.Wrapper,
) *Collection

func NewUsingErrors added in v0.4.3

func NewUsingErrors(errs ...error) *Collection

func NewUsingErrorsPtr added in v0.4.3

func NewUsingErrorsPtr(errs *[]error) *Collection

func NewWithError added in v0.1.2

func NewWithError(
	capacity int,
	variation errtype.Variation, err error,
) *Collection

func NewWithErrorUsingStackSkip added in v0.9.2

func NewWithErrorUsingStackSkip(
	stackSkipIndex int,
	errType errtype.Variation,
	err error,
) *Collection

func NewWithItem

func NewWithItem(
	capacity int,
	variation errtype.Variation,
) *Collection

func NewWithMessage added in v0.3.1

func NewWithMessage(variation errtype.Variation, msg string) *Collection

func NewWithMessageUsingStackSkip added in v0.9.2

func NewWithMessageUsingStackSkip(
	stackSkipIndex int,
	variation errtype.Variation, msg string,
) *Collection

func NewWithOnlyCapError added in v0.3.3

func NewWithOnlyCapError(capacity int, err error) *Collection

func NewWithOnlyError added in v0.1.2

func NewWithOnlyError(err error) *Collection

func NewWithType added in v0.3.1

func NewWithType(variation errtype.Variation) *Collection

func NewWithTypeUsingStackSkip added in v0.9.2

func NewWithTypeUsingStackSkip(
	stackSkipIndex int,
	variation errtype.Variation,
) *Collection

func (*Collection) Add

func (it *Collection) Add(variation errtype.Variation) *Collection

func (*Collection) AddAllErrorFunctions added in v0.5.4

func (it *Collection) AddAllErrorFunctions(
	errorType errtype.Variation,
	executeAllFunctions ...func() error,
) (isAnyAdded bool)

AddAllErrorFunctions

Runs until all execution is done.
All errors wrappers will be collected.

Finally, returns status if any error is collected.

Once error is returned process halted and exits out the loop
Only the first occurred error will be collected.

Warning:
 - Getting an error will NOT halt the process and continue running.

To exit out on first error see AddAnyErrorFunctions

func (*Collection) AddAllFunctions added in v0.5.2

func (it *Collection) AddAllFunctions(
	executeFunctions ...func() *errorwrapper.Wrapper,
) (isAddedAny, isNothingAdded bool)

AddAllFunctions

Runs until all execution is done.
All errors wrappers will be collected.

Finally, returns status if any error is collected.

Once error is returned process halted and exits out the loop
Only the first occurred error will be collected.

Warning:
 - Getting an error will NOT halt the process and continue running.

To exit out on first error see AddAnyFunctions

func (*Collection) AddAllIsSuccessCollectorFunctions added in v0.5.4

func (it *Collection) AddAllIsSuccessCollectorFunctions(
	isSuccessCollectors ...func(errorCollection *Collection) (isSuccess bool),
) *Collection

func (*Collection) AddAllIsSuccessProcessCollectorFunc added in v0.5.4

func (it *Collection) AddAllIsSuccessProcessCollectorFunc(
	dynamicInput coredynamic.Dynamic,
	isSuccessProcessCollector func(
		dynamicIn coredynamic.Dynamic,
		errorCollection *Collection,
	) (isSuccess bool),
) *Collection

func (*Collection) AddAnyErrorFunctions added in v0.5.4

func (it *Collection) AddAnyErrorFunctions(
	errorType errtype.Variation,
	executeFunctions ...func() error,
) (isAnyAdded bool)

AddAnyErrorFunctions

Runs until first function returns error.

Once error is returned process halted and exits out the loop
Only the first occurred error will be collected.

Warning:
 - After first error, rest will not be executed.

To run all functions see AddAllErrorFunctions

func (*Collection) AddAnyFunctions added in v0.5.2

func (it *Collection) AddAnyFunctions(
	successExecutes ...func() *errorwrapper.Wrapper,
) (isAnyAdded, isNothingAdded bool)

AddAnyFunctions

Runs until first function returns error.

Once error is returned process halted and exits out the loop
Only the first occurred error will be collected.

Warning:
 - After first error, rest will not be executed.

To run all functions see AddAllFunctions

func (*Collection) AddBasicErrWrapper added in v0.9.6

func (it *Collection) AddBasicErrWrapper(
	basicErrWrapper errcoreinf.BasicErrWrapper,
) errcoreinf.BaseErrorWrapperCollectionDefiner

func (*Collection) AddCollections added in v0.2.6

func (it *Collection) AddCollections(
	errCollections ...*Collection,
) *Collection

func (*Collection) AddCollectionsPtr added in v0.3.3

func (it *Collection) AddCollectionsPtr(
	errCollections *[]*Collection,
) *Collection

func (*Collection) AddError added in v0.1.2

func (it *Collection) AddError(err error)

AddError no error then skip adding

func (*Collection) AddErrorChain added in v0.9.8

func (it *Collection) AddErrorChain(err error) *Collection

AddErrorChain

no error then skip adding

func (*Collection) AddErrorInfo added in v1.0.5

func (it *Collection) AddErrorInfo(
	variation errtype.Variation,
	err error,
	info *coretaskinfo.Info,
) *Collection

func (*Collection) AddErrorInfoPayload added in v1.0.5

func (it *Collection) AddErrorInfoPayload(
	variation errtype.Variation,
	err error,
	info *coretaskinfo.Info,
	payloadBytes []byte,
) *Collection

func (*Collection) AddErrorUsingBasicType added in v0.9.6

func (it *Collection) AddErrorUsingBasicType(
	errType errcoreinf.BasicErrorTyper,
	err error,
) errcoreinf.BaseErrorWrapperCollectionDefiner

func (*Collection) AddErrorWithMessages added in v0.6.7

func (it *Collection) AddErrorWithMessages(
	errType errtype.Variation,
	err error,
	messages ...string,
) *Collection

AddErrorWithMessages no error then skip adding

func (*Collection) AddErrorWrapGetter added in v1.0.3

func (it *Collection) AddErrorWrapGetter(
	errWrapGetter errorwrapper.ErrWrapGetter,
) (isAdded bool)

func (*Collection) AddErrors added in v0.4.3

func (it *Collection) AddErrors(errs ...error)

AddErrors no error then skip adding

func (*Collection) AddErrorsPtr added in v0.4.3

func (it *Collection) AddErrorsPtr(errs *[]error)

AddErrorsPtr no error then skip adding

func (*Collection) AddExistingErrorWrapperOrFunc added in v0.9.7

func (it *Collection) AddExistingErrorWrapperOrFunc(
	existingErrWrapper *errorwrapper.Wrapper,
	errWrapperFunc func() *errorwrapper.Wrapper,
) (isAddedAny bool)

AddExistingErrorWrapperOrFunc

On existing error, errWrapperFunc will NOT be executed.

If existingErrWrapper doesn't contain error
then return status based on errWrapperFunc

alias for IsCollectedErrorWrapperOrFunc

func (*Collection) AddExistingWrapWithInfo added in v1.1.2

func (it *Collection) AddExistingWrapWithInfo(
	info *coretaskinfo.Info,
	existingErrWrap *errorwrapper.Wrapper,
) *Collection

func (*Collection) AddExistingWrapWithInfoPayloadsAny added in v1.1.2

func (it *Collection) AddExistingWrapWithInfoPayloadsAny(
	info *coretaskinfo.Info,
	existingErrWrap *errorwrapper.Wrapper,
	payloadsAny interface{},
) *Collection

func (*Collection) AddExpectation added in v0.6.7

func (it *Collection) AddExpectation(
	variation errtype.Variation,
	title string,
	expecting, actual interface{},
) *Collection

func (*Collection) AddFmt added in v0.9.7

func (it *Collection) AddFmt(
	variation errtype.Variation,
	format string,
	v ...interface{},
) *Collection

func (*Collection) AddFmtErr added in v0.9.7

func (it *Collection) AddFmtErr(
	variation errtype.Variation,
	err error,
	format string,
	v ...interface{},
) *Collection

func (*Collection) AddFmtIf added in v0.9.7

func (it *Collection) AddFmtIf(
	isAdd bool,
	variation errtype.Variation,
	format string,
	v ...interface{},
) *Collection

func (*Collection) AddFmtMsg added in v0.9.7

func (it *Collection) AddFmtMsg(
	variation errtype.Variation,
	msg string,
	format string,
	v ...interface{},
) *Collection

func (*Collection) AddFriendlyError added in v1.0.3

func (it *Collection) AddFriendlyError(
	friendlyError *errorwrapper.FriendlyError,
) (isAdded bool)

func (*Collection) AddFunction added in v0.8.5

func (it *Collection) AddFunction(
	successExecute func() *errorwrapper.Wrapper,
) (isCollected bool)

func (*Collection) AddIf added in v0.5.2

func (it *Collection) AddIf(
	isAdd bool,
	errorWrapper *errorwrapper.Wrapper,
) *Collection

func (*Collection) AddIsSuccessCollectorWithKey added in v0.5.4

func (it *Collection) AddIsSuccessCollectorWithKey(
	key string,
	isSuccessCollector func(errorCollection *Collection) (isSuccess bool),
) *Collection

func (*Collection) AddIsSuccessCollectorWithReferences added in v0.5.4

func (it *Collection) AddIsSuccessCollectorWithReferences(
	isSuccessCollector func(errorCollection *Collection) (isSuccess bool),
	references ...ref.Value,
) *Collection

func (*Collection) AddJsonResultAsDeserializedWrapper added in v0.9.8

func (it *Collection) AddJsonResultAsDeserializedWrapper(
	jsonResult *corejson.Result,
) (isAdded bool)

func (*Collection) AddMsgInfo added in v1.0.5

func (it *Collection) AddMsgInfo(
	variation errtype.Variation,
	msg string,
	info *coretaskinfo.Info,
) *Collection

func (*Collection) AddMsgInfoPayload added in v1.0.5

func (it *Collection) AddMsgInfoPayload(
	variation errtype.Variation,
	msg string,
	info *coretaskinfo.Info,
	payloadBytes []byte,
) *Collection

func (*Collection) AddOnlyRefs added in v0.5.2

func (it *Collection) AddOnlyRefs(
	variation errtype.Variation,
	refValues ...ref.Value,
) *Collection

func (*Collection) AddPathIssue added in v0.5.2

func (it *Collection) AddPathIssue(
	variation errtype.Variation,
	err error,
	pathLocation string,
) *Collection

AddPathIssue if no error then doesn't add to the collection.

func (*Collection) AddPathIssueMessages added in v0.5.2

func (it *Collection) AddPathIssueMessages(
	variation errtype.Variation,
	pathLocation string,
	messages ...string,
) *Collection

AddPathIssueMessages if no error then doesn't add to the collection.

func (*Collection) AddRawErrCollection added in v0.9.7

func (it *Collection) AddRawErrCollection(
	variation errtype.Variation,
	message string,
	rawErrCollection errcoreinf.BaseRawErrCollectionDefiner,
) *Collection

func (*Collection) AddRef added in v0.4.0

func (it *Collection) AddRef(
	errType errtype.Variation,
	err error,
	varName string,
	val interface{},
) *Collection

func (*Collection) AddRef1Msg added in v0.7.1

func (it *Collection) AddRef1Msg(
	variation errtype.Variation,
	msg string,
	var1 string,
	val1 interface{},
) *Collection

func (*Collection) AddRef2Msg added in v0.7.1

func (it *Collection) AddRef2Msg(
	variation errtype.Variation,
	msg string,
	var1 string,
	val1 interface{},
	var2 string,
	val2 interface{},
) *Collection

func (*Collection) AddRefOne added in v0.9.7

func (it *Collection) AddRefOne(
	variation errtype.Variation,
	var1 string, val1 interface{},
) *Collection

AddRefOne if messages empty then nothing added

func (*Collection) AddRefTwo added in v0.9.7

func (it *Collection) AddRefTwo(
	variation errtype.Variation,
	varName1 string, val1 interface{},
	varName2 string, val2 interface{},
	messages ...string,
) *Collection

func (*Collection) AddRefs added in v0.4.0

func (it *Collection) AddRefs(
	variation errtype.Variation,
	err error,
	refValues ...ref.Value,
) *Collection

func (*Collection) AddRefsCollection added in v0.5.2

func (it *Collection) AddRefsCollection(
	errType errtype.Variation,
	refsCollection *refs.Collection,
	err error,
) *Collection

func (*Collection) AddSlice added in v0.9.7

func (it *Collection) AddSlice(
	variation errtype.Variation,
	message string,
	slice ...string,
) *Collection

func (*Collection) AddTypeError added in v0.4.0

func (it *Collection) AddTypeError(
	variation errtype.Variation,
	err error,
) *Collection

AddTypeError Skip on empty or nil

func (*Collection) AddTypeInfoErr added in v1.1.0

func (it *Collection) AddTypeInfoErr(
	variation errtype.Variation,
	info *coretaskinfo.Info,
	err error,
) *Collection

func (*Collection) AddTypeInfoErrPayloadsAny added in v1.1.0

func (it *Collection) AddTypeInfoErrPayloadsAny(
	variation errtype.Variation,
	info *coretaskinfo.Info,
	err error,
	payloadsAny interface{},
) *Collection

func (*Collection) AddTypeInfoMsg added in v1.1.0

func (it *Collection) AddTypeInfoMsg(
	variation errtype.Variation,
	info *coretaskinfo.Info,
	message string,
) *Collection

func (*Collection) AddTypeInfoMsgPayloadsAny added in v1.1.0

func (it *Collection) AddTypeInfoMsgPayloadsAny(
	variation errtype.Variation,
	info *coretaskinfo.Info,
	message string,
	payloadsAny interface{},
) *Collection

func (*Collection) AddTypeInfoMsgRefs added in v1.1.0

func (it *Collection) AddTypeInfoMsgRefs(
	variation errtype.Variation,
	info *coretaskinfo.Info,
	message string,
	references ...ref.Value,
) *Collection

func (*Collection) AddTypeRefQuick added in v0.7.1

func (it *Collection) AddTypeRefQuick(
	errType errtype.Variation,
	referencesValues ...interface{},
) *Collection

func (*Collection) AddUsingMessages

func (it *Collection) AddUsingMessages(
	variation errtype.Variation,
	messages ...string,
) *Collection

AddUsingMessages

Same category multiple errorwrapper.New gets created for each message.

func (*Collection) AddUsingMessagesUsingStackSkip added in v0.7.9

func (it *Collection) AddUsingMessagesUsingStackSkip(
	skipStartStackIndex int,
	variation errtype.Variation,
	messages ...string,
) *Collection

AddUsingMessagesUsingStackSkip

Same category multiple errorwrapper.New gets created for each message.

func (*Collection) AddUsingMsg

func (it *Collection) AddUsingMsg(
	variation errtype.Variation,
	message string,
) *Collection

AddUsingMsg if additionalMessage empty nothing added

func (*Collection) AddWrapper added in v0.2.5

func (it *Collection) AddWrapper(
	errorWrapper errorwrapper.Wrapper,
) *Collection

AddWrapper Skip on empty

func (*Collection) AddWrapperPlusFuncPtr added in v0.6.5

func (it *Collection) AddWrapperPlusFuncPtr(
	errorWrapper *errorwrapper.Wrapper,
	errWrapperFunc func() *errorwrapper.Wrapper,
) (isAddedAny, isNothingAdded bool)

func (*Collection) AddWrapperPtr added in v0.2.5

func (it *Collection) AddWrapperPtr(
	errorWrapper *errorwrapper.Wrapper,
) *Collection

AddWrapperPtr Skip on empty or nil

func (*Collection) AddWrapperWithAdditionalRefs added in v0.5.4

func (it *Collection) AddWrapperWithAdditionalRefs(
	wrapper *errorwrapper.Wrapper,
	refValues ...ref.Value,
) *Collection

func (*Collection) AddWrappers added in v0.2.6

func (it *Collection) AddWrappers(
	errWrappers ...*errorwrapper.Wrapper,
) *Collection

AddWrappers Skip on empty or nil

func (*Collection) AddWrappersPtr added in v0.2.5

func (it *Collection) AddWrappersPtr(
	errWrappers *[]*errorwrapper.Wrapper,
) *Collection

AddWrappersPtr Skip on empty or nil

func (*Collection) Adds

func (it *Collection) Adds(
	variations ...errtype.Variation,
) *Collection

Adds

for each variation errorwrapper.New will be created and stored.

func (*Collection) AddsIf added in v0.5.3

func (it *Collection) AddsIf(
	isAdd bool,
	errorWrappers ...*errorwrapper.Wrapper,
) *Collection

func (*Collection) AddsUsingStackSkip added in v0.7.9

func (it *Collection) AddsUsingStackSkip(
	stackStartIndex int,
	variations ...errtype.Variation,
) *Collection

AddsUsingStackSkip

for each variation errorwrapper.New
will be created and stored.

func (*Collection) AllReferences added in v0.9.6

func (it *Collection) AllReferences() *refs.Collection

func (*Collection) AllStackTraces added in v0.9.6

func (it *Collection) AllStackTraces() *codestack.TraceCollection

AllStackTraces

it will return all stack-traces string

func (*Collection) Append added in v0.9.6

func (it *Collection) Append(
	errorWrapper *errorwrapper.Wrapper,
) *Collection

Append

Skip on empty or nil

alias for AddWrapperPtr

func (Collection) AsBaseErrorWrapperCollectionDefiner added in v0.9.6

func (it Collection) AsBaseErrorWrapperCollectionDefiner() errcoreinf.BaseErrorWrapperCollectionDefiner

func (*Collection) AsBasicSliceContractsBinder added in v0.5.3

func (it *Collection) AsBasicSliceContractsBinder() coreinterface.BasicSlicerContractsBinder

func (*Collection) AsBasicSlicerContractsBinder added in v0.5.3

func (it *Collection) AsBasicSlicerContractsBinder() coreinterface.BasicSlicerContractsBinder

func (*Collection) AsDynamicLinq added in v0.5.3

func (it *Collection) AsDynamicLinq() coreinterface.DynamicLinq

func (*Collection) AsJsonContractsBinder added in v0.8.7

func (it *Collection) AsJsonContractsBinder() corejson.JsonContractsBinder

func (*Collection) AsJsonMarshaller added in v0.4.0

func (it *Collection) AsJsonMarshaller() corejson.JsonMarshaller

func (*Collection) AsJsonParseSelfInjector added in v0.4.0

func (it *Collection) AsJsonParseSelfInjector() corejson.JsonParseSelfInjector

func (*Collection) AsJsoner added in v0.4.0

func (it *Collection) AsJsoner() corejson.Jsoner

func (*Collection) Clear added in v0.8.5

func (it *Collection) Clear()

Clear

Resets collection

func (*Collection) CollectCmdOnce added in v0.7.3

func (it *Collection) CollectCmdOnce(cmdOnce *errcmd.CmdOnce) *Collection

func (*Collection) CollectCmdOnceCollection added in v0.7.3

func (it *Collection) CollectCmdOnceCollection(
	cmdOnceCollection *errcmd.CmdOnceCollection,
) *Collection

func (*Collection) CollectNull added in v0.9.8

func (it *Collection) CollectNull(
	anyItem interface{},
) *Collection

func (*Collection) CollectNullMany added in v0.9.8

func (it *Collection) CollectNullMany(
	anyItems ...interface{},
) *Collection

func (*Collection) Compile added in v0.9.6

func (it *Collection) Compile() string

func (*Collection) CompiledError added in v0.9.6

func (it *Collection) CompiledError() error

func (*Collection) CompiledErrorWithStackTraces added in v0.9.6

func (it *Collection) CompiledErrorWithStackTraces() error

func (*Collection) CompiledErrors added in v0.7.1

func (it *Collection) CompiledErrors() []error

func (*Collection) CompiledErrorsWithStackTraces added in v0.7.9

func (it *Collection) CompiledErrorsWithStackTraces() []error

func (*Collection) CompiledJsonErrorWithStackTraces added in v0.9.6

func (it *Collection) CompiledJsonErrorWithStackTraces() error

func (*Collection) CompiledJsonStringWithStackTraces added in v0.9.6

func (it *Collection) CompiledJsonStringWithStackTraces() (jsonString string)

func (*Collection) CompiledStackTracesString added in v0.9.6

func (it *Collection) CompiledStackTracesString() string

func (*Collection) CompiledToBasicErrWrapper added in v0.9.6

func (it *Collection) CompiledToBasicErrWrapper(
	errType errcoreinf.BasicErrorTyper,
) errcoreinf.BasicErrWrapper

func (*Collection) CompiledToErrorWithTraces added in v0.9.6

func (it *Collection) CompiledToErrorWithTraces(
	errType errcoreinf.BasicErrorTyper,
) error

func (*Collection) CompiledToGenericBasicErrWrapper added in v0.9.6

func (it *Collection) CompiledToGenericBasicErrWrapper() errcoreinf.BasicErrWrapper

func (*Collection) ConcatNew added in v0.6.4

func (it *Collection) ConcatNew(
	errCollections ...*Collection,
) *Collection

ConcatNew

no clone copies to new list

func (*Collection) ConcatNewClone added in v0.9.6

func (it *Collection) ConcatNewClone(
	errCollections ...*Collection,
) *Collection

func (*Collection) ConcatNewOptions added in v0.9.6

func (it *Collection) ConcatNewOptions(
	isCloneAsWellOnEmpty bool,
	errCollections ...*Collection,
) *Collection

func (*Collection) ConditionalAddError added in v0.4.9

func (it *Collection) ConditionalAddError(
	isAdd bool,
	err error,
)

ConditionalAddError adds error if isAdd and error not nil.

func (*Collection) ConditionalAddErrorWrapper added in v0.4.9

func (it *Collection) ConditionalAddErrorWrapper(
	isAdd bool,
	errorWrapper *errorwrapper.Wrapper,
) *Collection

ConditionalAddErrorWrapper adds error if isAdd and error not nil.

func (*Collection) Count added in v0.5.3

func (it *Collection) Count() int

func (Collection) Deserialize added in v0.9.8

func (it Collection) Deserialize(toPtr interface{}) error

func (*Collection) DisplayStringWithLimitTraces added in v0.7.9

func (it *Collection) DisplayStringWithLimitTraces(limit int) string

func (*Collection) DisplayStringWithTraces added in v0.7.9

func (it *Collection) DisplayStringWithTraces() string

func (*Collection) Dispose

func (it *Collection) Dispose()

Dispose

After dispose nothing will work,
everything be removed from memory.

func (*Collection) ErrorString added in v0.9.6

func (it *Collection) ErrorString() string

func (*Collection) ErrorTypes added in v0.7.1

func (it *Collection) ErrorTypes() []errtype.Variation

func (*Collection) Errors added in v0.7.1

func (it *Collection) Errors() []error

func (*Collection) ExecuteCollectFuncIf added in v0.5.2

func (it *Collection) ExecuteCollectFuncIf(
	isExecute bool,
	f func() *errorwrapper.Wrapper,
) (isAddedAny, isNothingAdded bool)

ExecuteCollectFuncIf if true then executes the function and add to error collection if function returns error

func (*Collection) First added in v0.5.3

func (it *Collection) First() *errorwrapper.Wrapper

func (*Collection) FirstDynamic added in v0.5.3

func (it *Collection) FirstDynamic() interface{}

func (*Collection) FirstOrDefault added in v0.5.3

func (it *Collection) FirstOrDefault() *errorwrapper.Wrapper

func (*Collection) FirstOrDefaultCompiledError added in v0.7.1

func (it *Collection) FirstOrDefaultCompiledError() error

func (*Collection) FirstOrDefaultDynamic added in v0.5.3

func (it *Collection) FirstOrDefaultDynamic() interface{}

func (*Collection) FirstOrDefaultError added in v0.7.1

func (it *Collection) FirstOrDefaultError() error

func (*Collection) FirstOrDefaultFullMessage added in v0.7.1

func (it *Collection) FirstOrDefaultFullMessage() string

func (*Collection) FullString added in v0.9.6

func (it *Collection) FullString() string

func (*Collection) FullStringSplitByNewLine added in v0.9.6

func (it *Collection) FullStringSplitByNewLine() []string

func (*Collection) FullStringWithTraces added in v0.9.6

func (it *Collection) FullStringWithTraces() string

func (*Collection) FullStringWithTracesIf added in v0.9.6

func (it *Collection) FullStringWithTracesIf(
	isStackTraces bool,
) string

func (*Collection) FullStringWithoutReferences added in v0.9.6

func (it *Collection) FullStringWithoutReferences() string

func (*Collection) FullStrings added in v0.7.9

func (it *Collection) FullStrings() []string

func (*Collection) FullStringsWithLimitTraces added in v0.7.9

func (it *Collection) FullStringsWithLimitTraces(limit int) []string

func (*Collection) FullStringsWithTraces added in v0.7.9

func (it *Collection) FullStringsWithTraces() []string

func (*Collection) GetAsBasicWrapper added in v0.9.6

func (it *Collection) GetAsBasicWrapper() errcoreinf.BasicErrWrapper

func (*Collection) GetAsBasicWrapperUsingTyper added in v0.9.6

func (it *Collection) GetAsBasicWrapperUsingTyper(
	errorTyper errcoreinf.BasicErrorTyper,
) errcoreinf.BasicErrWrapper

func (*Collection) GetAsError

func (it *Collection) GetAsError() error

func (*Collection) GetAsErrorWrapper added in v0.3.4

func (it *Collection) GetAsErrorWrapper() errorwrapper.Wrapper

func (*Collection) GetAsErrorWrapperPtr added in v0.3.4

func (it *Collection) GetAsErrorWrapperPtr() *errorwrapper.Wrapper

func (*Collection) GetAsErrorWrapperUsingMessageType added in v0.9.7

func (it *Collection) GetAsErrorWrapperUsingMessageType(
	errType errtype.Variation,
	message string,
) *errorwrapper.Wrapper

func (*Collection) GetAsErrorWrapperUsingType added in v0.9.6

func (it *Collection) GetAsErrorWrapperUsingType(
	errType errtype.Variation,
) *errorwrapper.Wrapper

func (*Collection) GetErrorWrapperWithoutHeader added in v0.6.4

func (it *Collection) GetErrorWrapperWithoutHeader(
	errType errtype.Variation,
) *errorwrapper.Wrapper

func (*Collection) GetTypeVariantStructs added in v0.7.1

func (it *Collection) GetTypeVariantStructs() []errtype.VariantStructure

func (*Collection) HandleError added in v0.2.5

func (it *Collection) HandleError()

HandleError Skip if no error. Or else panics.

func (*Collection) HandleErrorWithMsg added in v0.9.6

func (it *Collection) HandleErrorWithMsg(newMessage string)

func (*Collection) HandleErrorWithRefs added in v0.9.6

func (it *Collection) HandleErrorWithRefs(
	newMessage string,
	refVar, refVal interface{},
)

func (*Collection) HandleWithMsg

func (it *Collection) HandleWithMsg(msg string)

HandleWithMsg Skip if no error.

func (*Collection) HasAnyError added in v0.9.6

func (it *Collection) HasAnyError() bool

func (*Collection) HasAnyIssues added in v0.9.6

func (it *Collection) HasAnyIssues() bool

func (*Collection) HasAnyItem added in v0.5.3

func (it *Collection) HasAnyItem() bool

func (*Collection) HasError added in v0.2.5

func (it *Collection) HasError() bool

func (*Collection) HasIndex added in v0.5.3

func (it *Collection) HasIndex(index int) bool

func (*Collection) IsAnyNull added in v0.9.6

func (it *Collection) IsAnyNull() bool

func (*Collection) IsAnyOfNull added in v0.9.7

func (it *Collection) IsAnyOfNull(
	anyItems ...interface{},
) (isNoneCollected bool)

IsAnyOfNull

returns true if any is null and also will be collected as error
Usages : errnew.Null .ManyByCheckingUsingStackSkip

func (*Collection) IsAnyOfNullWithMessageCollected added in v1.0.5

func (it *Collection) IsAnyOfNullWithMessageCollected(
	message string,
	anyItems ...interface{},
) (isCollected bool)

IsAnyOfNullWithMessageCollected

returns true if any is null and also will be collected as error
Usages : errnew.Null .ManyWithMessage

func (*Collection) IsAnyWrappersCollected added in v0.9.6

func (it *Collection) IsAnyWrappersCollected(
	errorWrappers ...*errorwrapper.Wrapper,
) (isCollected bool)

func (*Collection) IsCollect added in v0.9.6

func (it *Collection) IsCollect(
	another errcoreinf.BaseErrorOrCollectionWrapper,
) bool

IsCollect

first tries to cast to errorwrapper.Wrapper
if not successful then creates new one

func (*Collection) IsCollectOn added in v0.9.6

func (it *Collection) IsCollectOn(
	isCollect bool,
	another errcoreinf.BaseErrorOrCollectionWrapper,
) bool

IsCollectOn

Only returns true if condition is true + error exist

func (*Collection) IsCollected added in v0.8.9

func (it *Collection) IsCollected(
	errorWrapper *errorwrapper.Wrapper,
) (isCollected bool)

func (*Collection) IsCollectedAny added in v0.8.9

func (it *Collection) IsCollectedAny(
	anotherItems ...errcoreinf.BaseErrorOrCollectionWrapper,
) bool

func (*Collection) IsCollectedErrorWrapperOrFunc added in v0.9.7

func (it *Collection) IsCollectedErrorWrapperOrFunc(
	existingErrWrapper *errorwrapper.Wrapper,
	errWrapperFunc func() *errorwrapper.Wrapper,
) (isAddedAny bool)

IsCollectedErrorWrapperOrFunc

On existing error, errWrapperFunc will NOT be executed.

If existingErrWrapper doesn't contain error
then return status based on errWrapperFunc

alias for AddExistingErrorWrapperOrFunc

func (*Collection) IsCollectionType added in v0.9.6

func (it *Collection) IsCollectionType() bool

func (*Collection) IsDefined added in v0.9.6

func (it *Collection) IsDefined() bool

func (*Collection) IsEmpty

func (it *Collection) IsEmpty() bool

func (*Collection) IsEmptyAll added in v0.9.6

func (it *Collection) IsEmptyAll(
	anotherItems ...errcoreinf.BaseErrorOrCollectionWrapper,
) (isAllEmpty bool)

IsEmptyAll

true represents no error occurred.

To check error occurred check IsCollected or IsCollectedAny

func (*Collection) IsFailed added in v0.7.0

func (it *Collection) IsFailed() bool

func (*Collection) IsFailedAny added in v0.9.7

func (it *Collection) IsFailedAny(
	errorWrappers ...*errorwrapper.Wrapper,
) (isSuccessAll bool)

IsFailedAny

refers to if any errors found and collected

alias of  IsAnyWrappersCollected
invert of IsEmptyAll, IsSuccessAll

Usages:

  • if IsFailedAny() { return exit }

func (*Collection) IsFailedFunc added in v0.9.7

func (it *Collection) IsFailedFunc(
	executeFunction func() *errorwrapper.Wrapper,
) (isFailed bool)

IsFailedFunc

returns true  if error is returned     and collected.
returns false if error is not returned nor collected.

Usages: - if IsFailedFunc() { return failed exit }

See also IsSuccessFunc

invert of IsSuccessFunc

func (*Collection) IsInvalid added in v0.9.6

func (it *Collection) IsInvalid() bool

func (*Collection) IsNoneCollected added in v0.9.7

func (it *Collection) IsNoneCollected(
	errorWrappers ...*errorwrapper.Wrapper,
) (isNoneCollected bool)

IsNoneCollected

refers to IsSuccess, no errors found

Invert of IsAnyWrappersCollected

alias of IsEmptyAll, IsSuccessAll

Usages:

  • if IsNoneCollected() { do success }

func (*Collection) IsNull added in v0.9.6

func (it *Collection) IsNull() bool

func (*Collection) IsNullCollected added in v1.0.5

func (it *Collection) IsNullCollected(
	anyItem interface{},
) (isNullCollected bool)

IsNullCollected

returns true if the item is null and
new error will be created and collected

Usages : errnew.Null .UsingStackSkip

func (*Collection) IsNullItemMessage added in v0.9.7

func (it *Collection) IsNullItemMessage(
	msg string,
	anyItem interface{},
) (isNoneCollected bool)

IsNullItemMessage

returns true if the item is null and
new error will be created and collected

Usages : errnew.Null .UsingStackSkip

func (*Collection) IsPayloadWrapperCollected added in v0.9.7

func (it *Collection) IsPayloadWrapperCollected(
	payloadWrapper *corepayload.PayloadWrapper,
) (isCollected bool)

func (*Collection) IsSuccess added in v0.7.0

func (it *Collection) IsSuccess() bool

func (*Collection) IsSuccessAll added in v0.9.7

func (it *Collection) IsSuccessAll(
	errorWrappers ...*errorwrapper.Wrapper,
) (isSuccessAll bool)

IsSuccessAll

refers to IsSuccess, no errors found

Invert of IsAnyWrappersCollected

alias of IsEmptyAll, IsSuccessAll

Usages:

  • if IsSuccessAll() { do success }

func (*Collection) IsSuccessFunc added in v0.9.7

func (it *Collection) IsSuccessFunc(
	executeFunction func() *errorwrapper.Wrapper,
) (isSuccess bool)

IsSuccessFunc

returns true  if error is not returned  nor collected.
returns false if error is returned      and collected.

Usages: - if IsSuccessFunc() { do this }

See also IsFailedFunc

invert of IsFailedFunc

func (*Collection) IsValid added in v0.7.0

func (it *Collection) IsValid() bool

func (*Collection) Items added in v0.2.5

func (it *Collection) Items() []*errorwrapper.Wrapper

func (*Collection) ItemsNonPtr added in v0.2.5

func (it *Collection) ItemsNonPtr() *[]errorwrapper.Wrapper

func (Collection) Json added in v0.4.0

func (it Collection) Json() corejson.Result

func (Collection) JsonModel added in v0.4.0

func (it Collection) JsonModel() []*errorwrapper.Wrapper

func (Collection) JsonModelAny added in v0.4.0

func (it Collection) JsonModelAny() interface{}

func (*Collection) JsonParseSelfInject added in v0.4.0

func (it *Collection) JsonParseSelfInject(
	jsonResult *corejson.Result,
) error

func (*Collection) JsonPtr added in v0.7.9

func (it *Collection) JsonPtr() *corejson.Result

func (Collection) JsonResultWithoutTraces added in v0.9.9

func (it Collection) JsonResultWithoutTraces() *corejson.Result

func (*Collection) Last added in v0.5.3

func (it *Collection) Last() *errorwrapper.Wrapper

func (*Collection) LastDynamic added in v0.5.3

func (it *Collection) LastDynamic() interface{}

func (*Collection) LastIndex added in v0.5.3

func (it *Collection) LastIndex() int

func (*Collection) LastOrDefault added in v0.5.3

func (it *Collection) LastOrDefault() *errorwrapper.Wrapper

func (*Collection) LastOrDefaultCompiledError added in v0.7.1

func (it *Collection) LastOrDefaultCompiledError() error

func (*Collection) LastOrDefaultDynamic added in v0.5.3

func (it *Collection) LastOrDefaultDynamic() interface{}

func (*Collection) LastOrDefaultError added in v0.7.1

func (it *Collection) LastOrDefaultError() error

func (*Collection) LastOrDefaultFullMessage added in v0.7.1

func (it *Collection) LastOrDefaultFullMessage() string

func (*Collection) Length

func (it *Collection) Length() int

func (*Collection) LimitDynamic added in v0.5.3

func (it *Collection) LimitDynamic(limit int) interface{}

func (Collection) Lines added in v0.9.9

func (it Collection) Lines() *corestr.SimpleSlice

Lines

mostly used for testing,
returns all error wrappers as single lines without traces

func (*Collection) LinesIf added in v0.9.2

func (it *Collection) LinesIf(
	isIncludeReferences bool,
) []string

func (*Collection) LinesWithoutTraces added in v1.0.3

func (it *Collection) LinesWithoutTraces() []string

func (*Collection) List

func (it *Collection) List() []*errorwrapper.Wrapper

func (*Collection) Log

func (it *Collection) Log()

Log Skip if no error. Or else log prints.

func (*Collection) LogDisplayStringWithLimitTraces added in v0.8.0

func (it *Collection) LogDisplayStringWithLimitTraces(limit int)

func (*Collection) LogFatal

func (it *Collection) LogFatal()

LogFatal Skip if no error. Or else log fatal.

func (*Collection) LogFatalWithTraces added in v0.9.6

func (it *Collection) LogFatalWithTraces()

func (*Collection) LogIf added in v0.9.6

func (it *Collection) LogIf(isLog bool)

func (*Collection) LogWithTraces added in v0.8.0

func (it *Collection) LogWithTraces()

func (Collection) MarshalJSON added in v0.4.0

func (it Collection) MarshalJSON() ([]byte, error)

func (*Collection) MustBeEmptyError added in v0.9.6

func (it *Collection) MustBeEmptyError()

func (*Collection) MustBeSafe added in v0.9.6

func (it *Collection) MustBeSafe()

func (*Collection) MutexCollection added in v0.8.5

func (it *Collection) MutexCollection() *MutexCollection

func (*Collection) NewDefaultStackTraces added in v0.9.6

func (it *Collection) NewDefaultStackTraces() string

func (*Collection) NewDefaultStackTracesJsonResult added in v0.9.6

func (it *Collection) NewDefaultStackTracesJsonResult() *corejson.Result

NewDefaultStackTracesJsonResult

creates new stack-traces and returns as json

func (*Collection) NewStackTraces added in v0.9.6

func (it *Collection) NewStackTraces(stackSkip int) string

func (*Collection) NewStackTracesJsonResult added in v0.9.6

func (it *Collection) NewStackTracesJsonResult(
	stackSkip int,
) *corejson.Result

func (*Collection) Null added in v0.9.8

func (it *Collection) Null(
	message string,
	anyItem interface{},
) *Collection

func (*Collection) NullSimple added in v0.9.8

func (it *Collection) NullSimple(
	anyItem interface{},
) *Collection

func (*Collection) NullTracker added in v1.0.5

func (it *Collection) NullTracker() *NullTracker

func (*Collection) ParseInjectUsingJson added in v0.4.0

func (it *Collection) ParseInjectUsingJson(
	jsonResult *corejson.Result,
) (*Collection, error)

func (*Collection) ParseInjectUsingJsonMust added in v0.4.0

func (it *Collection) ParseInjectUsingJsonMust(
	jsonResult *corejson.Result,
) *Collection

ParseInjectUsingJsonMust Panic if error

func (*Collection) ReferencesCompiledString added in v0.9.6

func (it *Collection) ReferencesCompiledString() string

func (*Collection) ReflectSetTo added in v0.9.6

func (it *Collection) ReflectSetTo(
	toPtr interface{},
) error

func (*Collection) Serialize added in v0.9.6

func (it *Collection) Serialize() ([]byte, error)

func (*Collection) SerializeMust added in v0.9.6

func (it *Collection) SerializeMust() []byte

func (*Collection) SerializeWithoutTraces added in v0.9.6

func (it *Collection) SerializeWithoutTraces() ([]byte, error)

func (*Collection) Skip added in v0.5.3

func (it *Collection) Skip(skippingItemsCount int) *Collection

func (*Collection) SkipDynamic added in v0.5.3

func (it *Collection) SkipDynamic(skippingItemsCount int) interface{}

func (*Collection) StackTraces added in v0.9.6

func (it *Collection) StackTraces() string

StackTraces

it will return all stack-traces string

func (*Collection) StackTracesJsonResult added in v0.9.6

func (it *Collection) StackTracesJsonResult() *corejson.Result

func (*Collection) StateTracker added in v0.6.9

func (it *Collection) StateTracker() StateCounter

func (Collection) String

func (it Collection) String() string

func (Collection) StringIf added in v0.8.9

func (it Collection) StringIf(isIncludeTraces bool) string

func (*Collection) StringJoinUsingFmt added in v0.7.9

func (it *Collection) StringJoinUsingFmt(
	joiner string,
	fmtFunc errorwrapper.StringFmtFunc,
) string

func (*Collection) StringStackTracesWithoutHeader added in v0.7.9

func (it *Collection) StringStackTracesWithoutHeader() string

func (*Collection) StringWithoutHeader added in v0.7.3

func (it *Collection) StringWithoutHeader() string

func (*Collection) Strings

func (it *Collection) Strings(isIncludeStakeTraces bool) []string

func (*Collection) StringsIf added in v0.7.9

func (it *Collection) StringsIf(isIncludeStakeTraces bool) []string

func (*Collection) StringsUsingFmt added in v0.7.9

func (it *Collection) StringsUsingFmt(fmtFunc errorwrapper.StringFmtFunc) []string

func (*Collection) StringsWithoutHeader added in v0.7.1

func (it *Collection) StringsWithoutHeader() []string

func (*Collection) StringsWithoutReferencePlusHeader added in v0.9.2

func (it *Collection) StringsWithoutReferencePlusHeader() []string

func (*Collection) Take added in v0.5.3

func (it *Collection) Take(takeDynamicItems int) *Collection

func (*Collection) TakeDynamic added in v0.5.3

func (it *Collection) TakeDynamic(takeDynamicItems int) interface{}

func (*Collection) TakeFromTo added in v0.5.3

func (it *Collection) TakeFromTo(fromIndex, toIndex int) *Collection

func (Collection) ToPtr added in v0.9.6

func (it Collection) ToPtr() *Collection

func (*Collection) ToString added in v0.7.1

func (it *Collection) ToString(
	isIncludeStakeTraces,
	isIncludeHeader bool,
) string

func (*Collection) ToStrings added in v0.6.4

func (it *Collection) ToStrings(
	isIncludeStakeTraces,
	isIncludeHeader bool,
) []string

func (*Collection) UnmarshalJSON added in v0.4.0

func (it *Collection) UnmarshalJSON(data []byte) error

func (*Collection) ValidationErrUsingSliceValidator added in v0.7.1

func (it *Collection) ValidationErrUsingSliceValidator(
	sliceValidator *corevalidator.SliceValidator,
	params *corevalidator.ValidatorParamsBase,
) *errorwrapper.Wrapper

func (*Collection) ValidationErrUsingTextValidator added in v0.7.1

func (it *Collection) ValidationErrUsingTextValidator(
	validator *corevalidator.TextValidator,
	params *corevalidator.ValidatorParamsBase,
) *errorwrapper.Wrapper

func (*Collection) Value added in v0.9.6

func (it *Collection) Value() error

func (*Collection) WasExpecting added in v0.6.7

func (it *Collection) WasExpecting(
	variation errtype.Variation,
	title string,
	expecting, actual interface{},
) *Collection

type MutexCollection added in v0.8.5

type MutexCollection struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func MutexEmpty added in v0.8.5

func MutexEmpty() *MutexCollection

func MutexNew added in v0.8.5

func MutexNew(capacity int) *MutexCollection

func (*MutexCollection) AddWrapperPtr added in v0.8.5

func (it *MutexCollection) AddWrapperPtr(
	errorWrapper *errorwrapper.Wrapper,
) *MutexCollection

AddWrapperPtr

Skip on empty or nil

func (*MutexCollection) AddWrappers added in v0.8.5

func (it *MutexCollection) AddWrappers(
	errWrappers ...*errorwrapper.Wrapper,
) *MutexCollection

AddWrappers

Skip on empty or nil

func (*MutexCollection) Clear added in v0.8.5

func (it *MutexCollection) Clear()

func (*MutexCollection) Collection added in v0.8.5

func (it *MutexCollection) Collection() *Collection

func (*MutexCollection) CompiledErrors added in v0.8.5

func (it *MutexCollection) CompiledErrors() []error

func (*MutexCollection) DisplayStringWithLimitTracesLock added in v0.8.5

func (it *MutexCollection) DisplayStringWithLimitTracesLock(limit int) string

func (*MutexCollection) DisplayStringWithTraces added in v0.8.5

func (it *MutexCollection) DisplayStringWithTraces() string

func (*MutexCollection) Dispose added in v0.8.5

func (it *MutexCollection) Dispose()

Dispose After dispose nothing will work, everything be removed from memory.

func (*MutexCollection) Errors added in v0.8.5

func (it *MutexCollection) Errors() []error

func (*MutexCollection) FullStrings added in v0.8.5

func (it *MutexCollection) FullStrings() []string

func (*MutexCollection) FullStringsWithLimitTracesLock added in v0.8.5

func (it *MutexCollection) FullStringsWithLimitTracesLock(limit int) []string

func (*MutexCollection) FullStringsWithTraces added in v0.8.5

func (it *MutexCollection) FullStringsWithTraces() []string

func (*MutexCollection) GetAsError added in v0.8.5

func (it *MutexCollection) GetAsError() error

func (*MutexCollection) GetAsErrorWrapperPtr added in v0.8.5

func (it *MutexCollection) GetAsErrorWrapperPtr() *errorwrapper.Wrapper

func (*MutexCollection) HandleError added in v0.8.5

func (it *MutexCollection) HandleError()

HandleError

Skip if no error. Or else panics.

func (*MutexCollection) HasError added in v0.8.5

func (it *MutexCollection) HasError() bool

func (*MutexCollection) IsEmpty added in v0.8.5

func (it *MutexCollection) IsEmpty() bool

func (*MutexCollection) IsFailed added in v0.8.5

func (it *MutexCollection) IsFailed() bool

func (*MutexCollection) IsSuccess added in v0.8.5

func (it *MutexCollection) IsSuccess() bool

func (*MutexCollection) IsValid added in v0.8.5

func (it *MutexCollection) IsValid() bool

func (*MutexCollection) Length added in v0.8.5

func (it *MutexCollection) Length() int

func (*MutexCollection) Log added in v0.8.5

func (it *MutexCollection) Log()

Log

Log Skip if no error. Or else log prints.

func (*MutexCollection) LogDisplayStringWithLimitTracesLock added in v0.8.5

func (it *MutexCollection) LogDisplayStringWithLimitTracesLock(limit int)

func (*MutexCollection) LogFatal added in v0.8.5

func (it *MutexCollection) LogFatal()

LogFatal Skip if no error. Or else log fatal.

func (*MutexCollection) LogWithTraces added in v0.8.5

func (it *MutexCollection) LogWithTraces()

func (*MutexCollection) StateCounter added in v0.8.6

func (it *MutexCollection) StateCounter() MutexCollectionStateCounter

func (MutexCollection) String added in v0.8.5

func (it MutexCollection) String() string

func (*MutexCollection) StringJoinUsingFmtLock added in v0.8.5

func (it *MutexCollection) StringJoinUsingFmtLock(
	joiner string,
	fmtFunc errorwrapper.StringFmtFunc,
) string

func (*MutexCollection) StringsIfLock added in v0.8.5

func (it *MutexCollection) StringsIfLock(isIncludeStakeTraces bool) []string

func (*MutexCollection) StringsUsingFmtLock added in v0.8.5

func (it *MutexCollection) StringsUsingFmtLock(
	fmtFunc errorwrapper.StringFmtFunc,
) []string

func (*MutexCollection) ToStringLock added in v0.8.5

func (it *MutexCollection) ToStringLock(
	isIncludeStakeTraces,
	isIncludeHeader bool,
) string

func (*MutexCollection) ToStringsLock added in v0.8.5

func (it *MutexCollection) ToStringsLock(
	isIncludeStakeTraces,
	isIncludeHeader bool,
) []string

type MutexCollectionStateCounter added in v0.8.6

type MutexCollectionStateCounter struct {
	Start int
	// contains filtered or unexported fields
}

func NewMutexStateCount added in v0.8.6

func NewMutexStateCount(collection *MutexCollection) MutexCollectionStateCounter

func (*MutexCollectionStateCounter) HasChanges added in v0.8.6

func (it *MutexCollectionStateCounter) HasChanges(currentCount int) bool

func (*MutexCollectionStateCounter) HasChangesCollection added in v0.8.6

func (it *MutexCollectionStateCounter) HasChangesCollection() bool

func (*MutexCollectionStateCounter) IsFailed added in v0.8.6

func (it *MutexCollectionStateCounter) IsFailed() bool

func (*MutexCollectionStateCounter) IsSameState added in v0.8.6

func (it *MutexCollectionStateCounter) IsSameState(currentCount int) bool

func (*MutexCollectionStateCounter) IsSameStateCollection added in v0.8.6

func (it *MutexCollectionStateCounter) IsSameStateCollection() bool

func (*MutexCollectionStateCounter) IsSuccess added in v0.8.6

func (it *MutexCollectionStateCounter) IsSuccess() bool

func (*MutexCollectionStateCounter) IsValid added in v0.8.6

func (it *MutexCollectionStateCounter) IsValid() bool

func (*MutexCollectionStateCounter) StartStateTracking added in v0.8.6

func (it *MutexCollectionStateCounter) StartStateTracking(start int) int

type NullTracker added in v1.0.5

type NullTracker struct {
	// contains filtered or unexported fields
}

func (*NullTracker) AddMsgNull added in v1.0.5

func (it *NullTracker) AddMsgNull(
	msg string,
	anyItem interface{},
) *NullTracker

func (*NullTracker) AddMsgNullRefs added in v1.0.5

func (it *NullTracker) AddMsgNullRefs(
	msg string,
	anyItem interface{},
	references ...ref.Value,
) *NullTracker

func (*NullTracker) AddMsgNulls added in v1.0.5

func (it *NullTracker) AddMsgNulls(
	msg string,
	anyItems ...interface{},
) *NullTracker

func (*NullTracker) AddNull added in v1.0.5

func (it *NullTracker) AddNull(anyItem interface{}) *NullTracker

func (*NullTracker) AddNulls added in v1.0.5

func (it *NullTracker) AddNulls(
	anyItems ...interface{},
) *NullTracker

func (*NullTracker) Clear added in v1.0.5

func (it *NullTracker) Clear()

func (*NullTracker) Commit added in v1.0.5

func (it *NullTracker) Commit() *Collection

func (*NullTracker) CommitUsingLock added in v1.0.5

func (it *NullTracker) CommitUsingLock() *Collection

func (*NullTracker) Error added in v1.0.6

func (it *NullTracker) Error(err error) *NullTracker

func (*NullTracker) ErrorWithMessage added in v1.0.6

func (it *NullTracker) ErrorWithMessage(
	message string,
	err error,
) *NullTracker

func (*NullTracker) ErrorWrapper added in v1.0.6

func (it *NullTracker) ErrorWrapper(
	errorWrapper *errorwrapper.Wrapper,
) *NullTracker

func (*NullTracker) HasAnyChanges added in v1.0.5

func (it *NullTracker) HasAnyChanges() bool

func (*NullTracker) HasAnyIssues added in v1.0.5

func (it *NullTracker) HasAnyIssues() bool

func (*NullTracker) HasAnyItem added in v1.0.5

func (it *NullTracker) HasAnyItem() bool

func (*NullTracker) IsAnyCollected added in v1.0.5

func (it *NullTracker) IsAnyCollected() (isCollected bool)

func (*NullTracker) IsEmpty added in v1.0.5

func (it *NullTracker) IsEmpty() bool

func (*NullTracker) IsFailed added in v1.0.5

func (it *NullTracker) IsFailed() (isFailed bool)

func (*NullTracker) IsNoneCollected added in v1.0.5

func (it *NullTracker) IsNoneCollected() (isNothingCollected bool)

func (*NullTracker) IsNull added in v1.0.5

func (it *NullTracker) IsNull(anyItem interface{}) (isCollected bool)

func (*NullTracker) IsNulls added in v1.0.5

func (it *NullTracker) IsNulls(
	anyItems ...interface{},
) (isAnyNullCollected bool)

func (*NullTracker) IsSuccess added in v1.0.5

func (it *NullTracker) IsSuccess() (isSuccess bool)

func (*NullTracker) Items added in v1.0.5

func (it *NullTracker) Items() []*errorwrapper.Wrapper

func (*NullTracker) Length added in v1.0.5

func (it *NullTracker) Length() int

func (*NullTracker) NewCollection added in v1.0.5

func (it *NullTracker) NewCollection() *Collection

func (*NullTracker) WithMessage added in v1.0.6

func (it *NullTracker) WithMessage(
	message string,
	objectNull interface{},
) *NullTracker

func (*NullTracker) WithMessageReferences added in v1.0.6

func (it *NullTracker) WithMessageReferences(
	message string,
	objectNull interface{},
	references ...ref.Value,
) *NullTracker

type StateCounter added in v0.6.5

type StateCounter struct {
	Start int
	// contains filtered or unexported fields
}

func NewStateCount added in v0.6.5

func NewStateCount(
	collection *Collection,
) StateCounter

func NewStateCountUsingLengthGetter added in v0.9.6

func NewStateCountUsingLengthGetter(
	lengthGetter coreinterface.LengthGetter,
) StateCounter

func (StateCounter) AsCountStateTrackerBinder added in v0.9.6

func (it StateCounter) AsCountStateTrackerBinder() coreinterface.CountStateTrackerBinder

func (StateCounter) HasChanges added in v0.6.5

func (it StateCounter) HasChanges() bool

func (StateCounter) HasChangesCollection added in v0.6.5

func (it StateCounter) HasChangesCollection() bool

func (StateCounter) IsFailed added in v0.7.3

func (it StateCounter) IsFailed() bool

func (StateCounter) IsSameState added in v0.6.5

func (it StateCounter) IsSameState() bool

func (StateCounter) IsSameStateCollection added in v0.6.5

func (it StateCounter) IsSameStateCollection() bool

func (StateCounter) IsSameStateUsingCount added in v0.9.6

func (it StateCounter) IsSameStateUsingCount(currentCount int) bool

func (StateCounter) IsSuccess added in v0.6.5

func (it StateCounter) IsSuccess() bool

func (StateCounter) IsValid added in v0.7.3

func (it StateCounter) IsValid() bool

func (StateCounter) StartStateTracking added in v0.6.5

func (it StateCounter) StartStateTracking(start int) int

Jump to

Keyboard shortcuts

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