errwrappers

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: 25 Imported by: 25

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Collection

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

func DeserializedBytes added in v0.9.6

func DeserializedBytes(
	jsonBytes []byte,
) (*Collection, *errorwrapper.Wrapper)

func DeserializedJsonResult added in v0.9.6

func DeserializedJsonResult(
	jsonResult *corejson.Result,
) (*Collection, *errorwrapper.Wrapper)

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 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,
) *Collection

AddAllErrorFunctions

Executes all error functions and collects error as wrapper.

func (*Collection) AddAllFunctions added in v0.5.2

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

AddAllFunctions

Adds function error to the collection if has any other than empty. Doesn't STOP until all run.

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,
) *Collection

AddAnyErrorFunctions if any func returns error then do not execute the others.

If func is nil or returns nil then continue further. If error not empty then returns don't continue further. If error is empty then continue further.

func (*Collection) AddAnyFunctions added in v0.5.2

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

AddAnyFunctions will execute until founds a error if found any error then remaining ones will NOT run Having nil in func will continue further.

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) 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) 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) AddExpectation added in v0.6.7

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

func (*Collection) AddFunction added in v0.8.5

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

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) 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) AddRef added in v0.4.0

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

func (*Collection) AddRef1 added in v0.5.3

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

AddRef1 if messages empty then nothing added

func (*Collection) AddRef1Msg added in v0.7.1

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

func (*Collection) AddRef2 added in v0.5.2

func (it *Collection) AddRef2(
	variation errtype.Variation,
	varName1 string, val1 interface{},
	varName2 string, val2 interface{},
	messages ...string,
) *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) 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) AddTypeError added in v0.4.0

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

AddTypeError Skip on empty or nil

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,
) *Collection

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) 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) 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,
) *Collection

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) 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) IsAnyWrappersCollected added in v0.9.6

func (it *Collection) IsAnyWrappersCollected(
	errorWrappers ...*errorwrapper.Wrapper,
) 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,
) bool

func (*Collection) IsCollectedAny added in v0.8.9

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

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,
) bool

func (*Collection) IsFailed added in v0.7.0

func (it *Collection) IsFailed() bool

func (*Collection) IsInvalid added in v0.9.6

func (it *Collection) IsInvalid() bool

func (*Collection) IsNull added in v0.9.6

func (it *Collection) IsNull() bool

func (*Collection) IsSuccess added in v0.7.0

func (it *Collection) IsSuccess() bool

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) 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) LinesIf added in v0.9.2

func (it *Collection) LinesIf(
	isIncludeReferences bool,
) []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) 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 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