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 NewUsingErrorWrappers(errWrappers ...*errorwrapper.Wrapper) *Collection
- func NewUsingErrorWrappersPtr(errWrappers *[]*errorwrapper.Wrapper, isMakeClone bool) *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 NewWithOnlyError(capacity int, 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) AddError(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) AddWithTypeError(variation errtype.Variation, err error) *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) Dispose()
- func (collection *Collection) GetAsError() error
- 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) Length() int
- func (collection *Collection) List() *[]*errorwrapper.Wrapper
- func (collection *Collection) Log()
- func (collection *Collection) LogFatal()
- func (collection *Collection) String() string
- func (collection *Collection) StringPtr() *string
- func (collection *Collection) Strings() []string
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 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 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 NewWithOnlyError ¶ added in v0.1.2
func NewWithOnlyError(capacity int, 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) AddError ¶ added in v0.1.2
func (collection *Collection) AddError(err error) *Collection
no error then skip adding
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) AddWithTypeError ¶ added in v0.1.2
func (collection *Collection) AddWithTypeError( variation errtype.Variation, err error, ) *Collection
Skip on empty or nil
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) 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) 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) 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) String ¶
func (collection *Collection) String() string
func (*Collection) StringPtr ¶
func (collection *Collection) StringPtr() *string
func (*Collection) Strings ¶
func (collection *Collection) Strings() []string
Click to show internal directories.
Click to hide internal directories.