Documentation ¶
Index ¶
- type Collection
- func Empty() *Collection
- func New(capacity int) *Collection
- func NewCap1() *Collection
- func NewCap2() *Collection
- func NewCap3() *Collection
- func NewCap4() *Collection
- func NewFromModel(model *CollectionModel) *Collection
- func NewUsingCollections(errorCollectionOfCollections ...*Collection) *Collection
- func NewUsingCollectionsPtr(errorCollectionOfCollections *[]*Collection) *Collection
- func NewUsingErrorWrappers(errWrappers ...*errorwrapper.Wrapper) *Collection
- func NewUsingErrorWrappersPtr(errWrappers *[]*errorwrapper.Wrapper, isMakeClone bool) *Collection
- func NewUsingErrors(errs ...error) *Collection
- func NewUsingErrorsPtr(errs *[]error) *Collection
- func NewWithError(capacity int, variation errtype.Variation, err error) *Collection
- func NewWithErrorPtr(capacity int, variation errtype.Variation, err *error) *Collection
- func NewWithItem(capacity int, variation errtype.Variation) *Collection
- func NewWithMessage(variation errtype.Variation, msg string) *Collection
- func NewWithOnlyCapError(capacity int, err error) *Collection
- func NewWithOnlyError(err error) *Collection
- func NewWithType(variation errtype.Variation) *Collection
- func (collection *Collection) Add(variation errtype.Variation) *Collection
- func (collection *Collection) AddCollections(errCollections ...*Collection) *Collection
- func (collection *Collection) AddCollectionsPtr(errCollections *[]*Collection) *Collection
- func (collection *Collection) AddError(err error) *Collection
- func (collection *Collection) AddErrors(errs ...error) *Collection
- func (collection *Collection) AddErrorsPtr(errs *[]error) *Collection
- func (collection *Collection) AddRef(errType errtype.Variation, varName string, val interface{}, err error) *Collection
- func (collection *Collection) AddRefs(errType errtype.Variation, refsCollection *refs.Collection, err error) *Collection
- func (collection *Collection) AddTypeError(variation errtype.Variation, err error) *Collection
- func (collection *Collection) AddUsingMessages(variation errtype.Variation, messages ...string) *Collection
- func (collection *Collection) AddUsingMsg(variation errtype.Variation, additionalMessage string) *Collection
- func (collection *Collection) AddWithTypeErrorPtr(variation errtype.Variation, err *error) *Collection
- func (collection *Collection) AddWrapper(errW errorwrapper.Wrapper) *Collection
- func (collection *Collection) AddWrapperPtr(errW *errorwrapper.Wrapper) *Collection
- func (collection *Collection) AddWrappers(errWrappers ...*errorwrapper.Wrapper) *Collection
- func (collection *Collection) AddWrappersPtr(errWrappers *[]*errorwrapper.Wrapper) *Collection
- func (collection *Collection) Adds(variations ...errtype.Variation) *Collection
- func (collection *Collection) AsJsonMarshaller() *corejson.JsonMarshaller
- func (collection *Collection) AsJsonParseSelfInjector() *corejson.ParseSelfInjector
- func (collection *Collection) AsJsoner() *corejson.Jsoner
- func (collection *Collection) Dispose()
- func (collection *Collection) GetAsError() error
- func (collection *Collection) GetAsErrorWrapper() errorwrapper.Wrapper
- func (collection *Collection) GetAsErrorWrapperPtr() *errorwrapper.Wrapper
- func (collection *Collection) HandleError()
- func (collection *Collection) HandleWithMsg(msg string)
- func (collection *Collection) HasError() bool
- func (collection *Collection) IsEmpty() bool
- func (collection *Collection) Items() *[]*errorwrapper.Wrapper
- func (collection *Collection) ItemsNonPtr() *[]errorwrapper.Wrapper
- func (collection *Collection) Json() *corejson.Result
- func (collection *Collection) JsonModel() *CollectionModel
- func (collection *Collection) JsonModelAny() interface{}
- func (collection *Collection) JsonParseSelfInject(jsonResult *corejson.Result) error
- func (collection *Collection) Length() int
- func (collection *Collection) List() *[]*errorwrapper.Wrapper
- func (collection *Collection) Log()
- func (collection *Collection) LogFatal()
- func (collection *Collection) MarshalJSON() ([]byte, error)
- func (collection *Collection) ParseInjectUsingJson(jsonResult *corejson.Result) (*Collection, error)
- func (collection *Collection) ParseInjectUsingJsonMust(jsonResult *corejson.Result) *Collection
- func (collection *Collection) String() string
- func (collection *Collection) StringPtr() *string
- func (collection *Collection) Strings() []string
- func (collection *Collection) UnmarshalJSON(data []byte) error
- type CollectionModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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 NewFromModel ¶ added in v0.4.0
func NewFromModel( model *CollectionModel, ) *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
func NewUsingErrorWrappersPtr ¶ added in v0.3.0
func NewUsingErrorWrappersPtr( errWrappers *[]*errorwrapper.Wrapper, isMakeClone bool, ) *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 NewWithErrorPtr ¶ added in v0.1.2
func NewWithErrorPtr( capacity int, variation 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 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 (*Collection) Add ¶
func (collection *Collection) Add(variation errtype.Variation) *Collection
func (*Collection) AddCollections ¶ added in v0.2.6
func (collection *Collection) AddCollections( errCollections ...*Collection, ) *Collection
func (*Collection) AddCollectionsPtr ¶ added in v0.3.3
func (collection *Collection) AddCollectionsPtr( errCollections *[]*Collection, ) *Collection
func (*Collection) AddError ¶ added in v0.1.2
func (collection *Collection) AddError(err error) *Collection
no error then skip adding
func (*Collection) AddErrors ¶ added in v0.4.3
func (collection *Collection) AddErrors(errs ...error) *Collection
no error then skip adding
func (*Collection) AddErrorsPtr ¶ added in v0.4.3
func (collection *Collection) AddErrorsPtr(errs *[]error) *Collection
no error then skip adding
func (*Collection) AddRef ¶ added in v0.4.0
func (collection *Collection) AddRef( errType errtype.Variation, varName string, val interface{}, err error, ) *Collection
func (*Collection) AddRefs ¶ added in v0.4.0
func (collection *Collection) AddRefs( errType errtype.Variation, refsCollection *refs.Collection, err error, ) *Collection
func (*Collection) AddTypeError ¶ added in v0.4.0
func (collection *Collection) AddTypeError( variation errtype.Variation, err error, ) *Collection
Skip on empty or nil
func (*Collection) AddUsingMessages ¶
func (collection *Collection) AddUsingMessages( variation errtype.Variation, messages ...string, ) *Collection
Same category multiple errorwrapper.New gets created for each message.
func (*Collection) AddUsingMsg ¶
func (collection *Collection) AddUsingMsg( variation errtype.Variation, additionalMessage string, ) *Collection
func (*Collection) AddWithTypeErrorPtr ¶ added in v0.1.2
func (collection *Collection) AddWithTypeErrorPtr( variation errtype.Variation, err *error, ) *Collection
Skip on empty or nil
func (*Collection) AddWrapper ¶ added in v0.2.5
func (collection *Collection) AddWrapper( errW errorwrapper.Wrapper, ) *Collection
Skip on empty
func (*Collection) AddWrapperPtr ¶ added in v0.2.5
func (collection *Collection) AddWrapperPtr( errW *errorwrapper.Wrapper, ) *Collection
Skip on empty or nil
func (*Collection) AddWrappers ¶ added in v0.2.6
func (collection *Collection) AddWrappers( errWrappers ...*errorwrapper.Wrapper, ) *Collection
Skip on empty or nil
func (*Collection) AddWrappersPtr ¶ added in v0.2.5
func (collection *Collection) AddWrappersPtr( errWrappers *[]*errorwrapper.Wrapper, ) *Collection
Skip on empty or nil
func (*Collection) Adds ¶
func (collection *Collection) Adds(variations ...errtype.Variation) *Collection
For each variation errorwrapper.New will be created and stored.
func (*Collection) AsJsonMarshaller ¶ added in v0.4.0
func (collection *Collection) AsJsonMarshaller() *corejson.JsonMarshaller
func (*Collection) AsJsonParseSelfInjector ¶ added in v0.4.0
func (collection *Collection) AsJsonParseSelfInjector() *corejson.ParseSelfInjector
func (*Collection) AsJsoner ¶ added in v0.4.0
func (collection *Collection) AsJsoner() *corejson.Jsoner
func (*Collection) Dispose ¶
func (collection *Collection) Dispose()
After dispose nothing will work, everything be removed from memory.
func (*Collection) GetAsError ¶
func (collection *Collection) GetAsError() error
func (*Collection) GetAsErrorWrapper ¶ added in v0.3.4
func (collection *Collection) GetAsErrorWrapper() errorwrapper.Wrapper
func (*Collection) GetAsErrorWrapperPtr ¶ added in v0.3.4
func (collection *Collection) GetAsErrorWrapperPtr() *errorwrapper.Wrapper
func (*Collection) HandleError ¶ added in v0.2.5
func (collection *Collection) HandleError()
Skip if no error. Or else panics.
func (*Collection) HandleWithMsg ¶
func (collection *Collection) HandleWithMsg(msg string)
Skip if no error.
func (*Collection) HasError ¶ added in v0.2.5
func (collection *Collection) HasError() bool
func (*Collection) IsEmpty ¶
func (collection *Collection) IsEmpty() bool
func (*Collection) Items ¶ added in v0.2.5
func (collection *Collection) Items() *[]*errorwrapper.Wrapper
func (*Collection) ItemsNonPtr ¶ added in v0.2.5
func (collection *Collection) ItemsNonPtr() *[]errorwrapper.Wrapper
func (*Collection) Json ¶ added in v0.4.0
func (collection *Collection) Json() *corejson.Result
func (*Collection) JsonModel ¶ added in v0.4.0
func (collection *Collection) JsonModel() *CollectionModel
func (*Collection) JsonModelAny ¶ added in v0.4.0
func (collection *Collection) JsonModelAny() interface{}
func (*Collection) JsonParseSelfInject ¶ added in v0.4.0
func (collection *Collection) JsonParseSelfInject( jsonResult *corejson.Result, ) error
func (*Collection) Length ¶
func (collection *Collection) Length() int
func (*Collection) List ¶
func (collection *Collection) List() *[]*errorwrapper.Wrapper
func (*Collection) LogFatal ¶
func (collection *Collection) LogFatal()
Skip if no error. Or else log fatal.
func (*Collection) MarshalJSON ¶ added in v0.4.0
func (collection *Collection) MarshalJSON() ([]byte, error)
func (*Collection) ParseInjectUsingJson ¶ added in v0.4.0
func (collection *Collection) ParseInjectUsingJson( jsonResult *corejson.Result, ) (*Collection, error)
func (*Collection) ParseInjectUsingJsonMust ¶ added in v0.4.0
func (collection *Collection) ParseInjectUsingJsonMust( jsonResult *corejson.Result, ) *Collection
Panic if error
func (*Collection) String ¶
func (collection *Collection) String() string
func (*Collection) StringPtr ¶
func (collection *Collection) StringPtr() *string
func (*Collection) Strings ¶
func (collection *Collection) Strings() []string
func (*Collection) UnmarshalJSON ¶ added in v0.4.0
func (collection *Collection) UnmarshalJSON(data []byte) error
type CollectionModel ¶ added in v0.4.0
type CollectionModel struct {
Wrappers *[]*errorwrapper.Wrapper
}
func NewDataModel ¶ added in v0.4.0
func NewDataModel( collection *Collection, ) *CollectionModel
Click to show internal directories.
Click to hide internal directories.