Documentation ¶
Index ¶
- type Collection
- func Empty() *Collection
- func New(capacity int) *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 NewWithOnlyError(capacity int, err error) *Collection
- func (collection *Collection) Add(variation errtype.Variation) *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) Adds(variations ...errtype.Variation) *Collection
- func (collection *Collection) Dispose()
- func (collection *Collection) GetAsError() error
- func (collection *Collection) Handle()
- func (collection *Collection) HandleWithMsg(msg string)
- func (collection *Collection) IsEmpty() bool
- 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 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 NewWithOnlyError ¶ added in v0.1.2
func NewWithOnlyError(capacity int, err error) *Collection
func (*Collection) Add ¶
func (collection *Collection) Add(variation errtype.Variation) *Collection
func (*Collection) AddError ¶ added in v0.1.2
func (collection *Collection) AddError(err error) *Collection
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
func (*Collection) AddWithTypeErrorPtr ¶ added in v0.1.2
func (collection *Collection) AddWithTypeErrorPtr(variation errtype.Variation, err *error) *Collection
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) HandleWithMsg ¶
func (collection *Collection) HandleWithMsg(msg string)
Skip if no error.
func (*Collection) IsEmpty ¶
func (collection *Collection) IsEmpty() bool
func (*Collection) Length ¶
func (collection *Collection) Length() int
func (*Collection) List ¶
func (collection *Collection) List() *[]errorwrapper.Wrapper
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.