errstr

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: 16 Imported by: 19

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	New   = newCreator{}
	Empty = emptyCreator{}
)

Functions

This section is empty.

Types

type CharCollectionMap added in v0.0.8

type CharCollectionMap struct {
	*corestr.CharCollectionMap
	ErrorWrapper *errorwrapper.Wrapper
}

type CharHashsetMap added in v0.0.8

type CharHashsetMap struct {
	*corestr.CharHashsetMap
	ErrorWrapper *errorwrapper.Wrapper
}

type Collection added in v0.0.8

type Collection struct {
	*corestr.Collection
	ErrorWrapper *errorwrapper.Wrapper
}

func (*Collection) HasError added in v0.7.0

func (it *Collection) HasError() bool

func (*Collection) HasSafeItems added in v0.7.0

func (it *Collection) HasSafeItems() bool

HasSafeItems No errors and has items

func (*Collection) IsEmpty added in v0.7.0

func (it *Collection) IsEmpty() bool

func (*Collection) IsEmptyError added in v0.7.0

func (it *Collection) IsEmptyError() bool

func (*Collection) IsFailed added in v0.7.0

func (it *Collection) IsFailed() 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

type Hashmap added in v0.0.8

type Hashmap struct {
	*corestr.Hashmap
	ErrorWrapper *errorwrapper.Wrapper
}

type Hashset added in v0.0.8

type Hashset struct {
	*corestr.Hashset
	ErrorWrapper *errorwrapper.Wrapper
}

type HashsetsCollection added in v0.0.8

type HashsetsCollection struct {
	*corestr.HashsetsCollection
	ErrorWrapper *errorwrapper.Wrapper
}

type LinkedCollections added in v0.1.0

type LinkedCollections struct {
	*corestr.LinkedCollections
	ErrorWrapper *errorwrapper.Wrapper
}

LinkedCollections TODO constructors

type LinkedList added in v0.1.0

type LinkedList struct {
	*corestr.LinkedList
	ErrorWrapper *errorwrapper.Wrapper
}

func EmptyLinkedList added in v0.1.0

func EmptyLinkedList() *LinkedList

func EmptyLinkedListUsingError added in v0.1.0

func EmptyLinkedListUsingError(
	wrapper *errorwrapper.Wrapper,
) *LinkedList

EmptyLinkedListUsingError wrapper nil will point to empty error wrapper

func NewLinkedList added in v0.1.0

func NewLinkedList() *LinkedList

func NewLinkedListUsingItemsError added in v0.1.0

func NewLinkedListUsingItemsError(
	errVariation errtype.Variation,
	err error,
	items []string,
) *LinkedList

func NewLinkedListUsingItemsErrorWrapper added in v0.1.0

func NewLinkedListUsingItemsErrorWrapper(
	items *[]string,
	errorWrapper *errorwrapper.Wrapper,
) *LinkedList

NewLinkedListUsingItemsErrorWrapper wrapper nil will point to empty error wrapper

func NewLinkedListUsingPtrItemsError added in v0.1.0

func NewLinkedListUsingPtrItemsError(
	ptrItems []*string,
	err error,
	errVariation errtype.Variation,
) *LinkedList

type Result

type Result struct {
	Value        string
	ErrorWrapper *errorwrapper.Wrapper
}

func (*Result) AsJsonContractsBinder added in v0.8.7

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

func (*Result) AsValueWithErrorWrapperBinder added in v0.7.6

func (it *Result) AsValueWithErrorWrapperBinder() errorwrapper.ValueWithErrorWrapperBinder

func (*Result) Bool added in v0.7.6

func (it *Result) Bool() bool

func (*Result) Byte added in v0.7.6

func (it *Result) Byte() byte

func (Result) Bytes added in v0.8.7

func (it Result) Bytes() []byte

func (*Result) Dispose added in v0.8.7

func (it *Result) Dispose()

func (*Result) ErrorWrapperInf added in v0.8.7

func (it *Result) ErrorWrapperInf() errorwrapper.ErrWrapper

func (*Result) HasError added in v0.7.0

func (it *Result) HasError() bool

func (*Result) HasIssuesOrEmpty added in v0.7.6

func (it *Result) HasIssuesOrEmpty() bool

func (*Result) HasIssuesOrWhitespace added in v0.7.0

func (it *Result) HasIssuesOrWhitespace() bool

func (*Result) HasSafeItems added in v0.7.0

func (it *Result) HasSafeItems() bool

func (*Result) Int added in v0.7.6

func (it *Result) Int() int

func (*Result) IsAnyNull added in v0.8.7

func (it *Result) IsAnyNull() bool

func (*Result) IsEmpty added in v0.7.0

func (it *Result) IsEmpty() bool

func (*Result) IsEmptyError added in v0.7.0

func (it *Result) IsEmptyError() bool

func (*Result) IsEmptyOrWhitespace added in v0.7.0

func (it *Result) IsEmptyOrWhitespace() bool

func (*Result) IsEqual added in v0.7.8

func (it *Result) IsEqual(term string) bool

func (*Result) IsEqualIgnoreCase added in v0.7.8

func (it *Result) IsEqualIgnoreCase(term string) bool

func (*Result) IsEqualResult added in v0.8.9

func (it *Result) IsEqualResult(right *Result) bool

func (*Result) IsFailed added in v0.7.0

func (it *Result) IsFailed() bool

func (*Result) IsInvalid added in v0.8.9

func (it *Result) IsInvalid() bool

func (*Result) IsSuccess added in v0.7.0

func (it *Result) IsSuccess() bool

func (*Result) IsValid added in v0.7.0

func (it *Result) IsValid() bool

func (Result) Json added in v0.7.6

func (it Result) Json() corejson.Result

func (Result) JsonModelAny added in v0.7.6

func (it Result) JsonModelAny() interface{}

func (*Result) JsonParseSelfInject added in v0.7.6

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

func (Result) JsonPtr added in v0.7.9

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

func (Result) SafeBytes added in v0.8.7

func (it Result) SafeBytes() []byte

func (*Result) SafeString added in v0.8.7

func (it *Result) SafeString() string

func (*Result) SimpleStringOnce added in v0.8.0

func (it *Result) SimpleStringOnce(
	isInit bool,
) corestr.SimpleStringOnce

func (*Result) SimpleStringOnceInit added in v0.8.7

func (it *Result) SimpleStringOnceInit() corestr.SimpleStringOnce

func (*Result) SplitLines added in v0.7.7

func (it *Result) SplitLines() []string

func (*Result) SplitLinesSimpleSlice added in v0.7.7

func (it *Result) SplitLinesSimpleSlice() *corestr.SimpleSlice

func (Result) String added in v0.7.6

func (it Result) String() string

func (*Result) ValidValue added in v0.7.6

func (it *Result) ValidValue() *corestr.ValidValue

type Result2

type Result2 struct {
	Result
	Value2 string
}

type ResultWithApplicable

type ResultWithApplicable struct {
	Result
	IsApplicable bool
}

type ResultWithApplicable2

type ResultWithApplicable2 struct {
	Result2
	IsApplicable bool
}

type Results

type Results struct {
	Values       []string
	ErrorWrapper *errorwrapper.Wrapper
}

func (*Results) AsJsonContractsBinder added in v0.8.7

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

func (*Results) AsResultsContractsBinder added in v0.8.7

func (it *Results) AsResultsContractsBinder() errorwrapper.ResultsContractsBinder

func (*Results) AsValueWithErrorWrapperBinder added in v0.8.7

func (it *Results) AsValueWithErrorWrapperBinder() errorwrapper.ValueWithErrorWrapperBinder

func (*Results) Clear added in v0.8.7

func (it *Results) Clear()

func (*Results) Dispose added in v0.8.7

func (it *Results) Dispose()

func (*Results) ErrorWrapperInf added in v0.8.7

func (it *Results) ErrorWrapperInf() errorwrapper.ErrWrapper

func (*Results) FirstOrDefault added in v1.0.5

func (it *Results) FirstOrDefault() string

func (*Results) FirstOrDefaultResult added in v1.0.5

func (it *Results) FirstOrDefaultResult() *Result

func (*Results) HasAnyItem added in v0.7.3

func (it *Results) HasAnyItem() bool

func (*Results) HasError added in v0.3.6

func (it *Results) HasError() bool

func (*Results) HasIssuesOrEmpty added in v0.3.6

func (it *Results) HasIssuesOrEmpty() bool

func (*Results) HasSafeItems added in v0.3.4

func (it *Results) HasSafeItems() bool

HasSafeItems No errors and has items

func (*Results) Hashset added in v0.8.7

func (it *Results) Hashset() *corestr.Hashset

func (*Results) IsAnyNull added in v0.8.7

func (it *Results) IsAnyNull() bool

func (*Results) IsDistinctEqualResult added in v0.8.9

func (it *Results) IsDistinctEqualResult(
	right *Results,
) bool

func (*Results) IsEmpty added in v0.7.3

func (it *Results) IsEmpty() bool

func (*Results) IsEmptyError added in v0.3.4

func (it *Results) IsEmptyError() bool

func (*Results) IsEqualResult added in v0.8.9

func (it *Results) IsEqualResult(
	isDistinctCompare,
	isIgnoreOrder bool,
	right *Results,
) bool

func (*Results) IsEqualResultDefault added in v0.8.9

func (it *Results) IsEqualResultDefault(
	right *Results,
) bool

func (*Results) IsFailed added in v0.7.0

func (it *Results) IsFailed() bool

func (*Results) IsIgnoreOrderEqualResult added in v0.8.9

func (it *Results) IsIgnoreOrderEqualResult(
	right *Results,
) bool

func (*Results) IsInvalid added in v0.8.9

func (it *Results) IsInvalid() bool

func (*Results) IsSuccess added in v0.7.0

func (it *Results) IsSuccess() bool

func (*Results) IsValid added in v0.7.6

func (it *Results) IsValid() bool

func (*Results) Items added in v0.8.9

func (it *Results) Items() []string

func (*Results) Join added in v1.0.5

func (it *Results) Join(joiner string) string

func (*Results) JoinCommaSpace added in v1.0.5

func (it *Results) JoinCommaSpace() string

func (*Results) JoinLine added in v1.0.5

func (it *Results) JoinLine() string

func (*Results) JoinLineEof added in v1.0.5

func (it *Results) JoinLineEof() string

func (*Results) JoinLineWithSuffix added in v1.0.5

func (it *Results) JoinLineWithSuffix(joiner, suffix string) string

func (*Results) JoinSpace added in v1.0.5

func (it *Results) JoinSpace() string

func (Results) Json added in v0.7.6

func (it Results) Json() corejson.Result

func (*Results) JsonModelAny added in v0.7.6

func (it *Results) JsonModelAny() interface{}

func (*Results) JsonParseSelfInject added in v0.7.6

func (it *Results) JsonParseSelfInject(jsonResult *corejson.Result) error

func (Results) JsonPtr added in v0.7.9

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

func (*Results) LastOrDefault added in v1.0.5

func (it *Results) LastOrDefault() string

func (*Results) LastOrDefaultResult added in v1.0.5

func (it *Results) LastOrDefaultResult() *Result

func (*Results) Length added in v0.7.3

func (it *Results) Length() int

func (*Results) Lines added in v0.8.9

func (it *Results) Lines() []string

func (*Results) List added in v0.8.9

func (it *Results) List() []string

func (*Results) SafeString added in v0.8.7

func (it *Results) SafeString() string

func (*Results) SafeValues added in v0.8.7

func (it *Results) SafeValues() []string

func (*Results) SafeValuesPtr added in v0.8.7

func (it *Results) SafeValuesPtr() *[]string

func (*Results) SimpleSlice added in v0.7.3

func (it *Results) SimpleSlice() *corestr.SimpleSlice

func (*Results) String added in v0.7.6

func (it *Results) String() string

func (*Results) StringCollection added in v0.7.7

func (it *Results) StringCollection() *corestr.Collection

func (*Results) Strings added in v0.8.9

func (it *Results) Strings() []string

func (*Results) UniqueMap added in v0.8.7

func (it *Results) UniqueMap() map[string]bool

func (*Results) UniqueMapPtr added in v0.8.7

func (it *Results) UniqueMapPtr() *map[string]bool

type ResultsWithErrorCollection added in v0.3.3

type ResultsWithErrorCollection struct {
	Values        []string
	ErrorWrappers *errwrappers.Collection
}

func (*ResultsWithErrorCollection) AsJsonContractsBinder added in v0.8.7

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

func (ResultsWithErrorCollection) AsValuesWithErrorWrapperCollectionBinder added in v0.8.7

func (it ResultsWithErrorCollection) AsValuesWithErrorWrapperCollectionBinder() errorwrapper.ValuesWithErrorWrapperCollectionBinder

func (*ResultsWithErrorCollection) Clear added in v0.8.7

func (it *ResultsWithErrorCollection) Clear()

func (*ResultsWithErrorCollection) Dispose added in v0.8.7

func (it *ResultsWithErrorCollection) Dispose()

func (*ResultsWithErrorCollection) ErrorWrapperInf added in v0.8.7

func (it *ResultsWithErrorCollection) ErrorWrapperInf() errorwrapper.ErrWrapper

func (*ResultsWithErrorCollection) HasAnyItem added in v0.7.6

func (it *ResultsWithErrorCollection) HasAnyItem() bool

func (*ResultsWithErrorCollection) HasError added in v0.3.6

func (it *ResultsWithErrorCollection) HasError() bool

func (*ResultsWithErrorCollection) HasIssuesOrEmpty added in v0.3.6

func (it *ResultsWithErrorCollection) HasIssuesOrEmpty() bool

func (*ResultsWithErrorCollection) HasSafeItems added in v0.3.4

func (it *ResultsWithErrorCollection) HasSafeItems() bool

HasSafeItems No errors and has items

func (*ResultsWithErrorCollection) IsAnyNull added in v0.8.7

func (it *ResultsWithErrorCollection) IsAnyNull() bool

func (*ResultsWithErrorCollection) IsEmpty added in v0.7.6

func (it *ResultsWithErrorCollection) IsEmpty() bool

func (*ResultsWithErrorCollection) IsEmptyError added in v0.3.4

func (it *ResultsWithErrorCollection) IsEmptyError() bool

func (*ResultsWithErrorCollection) IsEmptyItems added in v0.3.4

func (it *ResultsWithErrorCollection) IsEmptyItems() bool

func (*ResultsWithErrorCollection) IsFailed added in v0.7.6

func (it *ResultsWithErrorCollection) IsFailed() bool

func (*ResultsWithErrorCollection) IsInvalid added in v0.8.9

func (it *ResultsWithErrorCollection) IsInvalid() bool

func (*ResultsWithErrorCollection) IsSuccess added in v0.7.6

func (it *ResultsWithErrorCollection) IsSuccess() bool

func (*ResultsWithErrorCollection) IsValid added in v0.7.6

func (it *ResultsWithErrorCollection) IsValid() bool

func (ResultsWithErrorCollection) Json added in v0.7.6

func (*ResultsWithErrorCollection) JsonModelAny added in v0.7.6

func (it *ResultsWithErrorCollection) JsonModelAny() interface{}

func (*ResultsWithErrorCollection) JsonParseSelfInject added in v0.7.6

func (it *ResultsWithErrorCollection) JsonParseSelfInject(jsonResult *corejson.Result) error

func (ResultsWithErrorCollection) JsonPtr added in v0.7.9

func (*ResultsWithErrorCollection) Length added in v0.7.6

func (it *ResultsWithErrorCollection) Length() int

func (*ResultsWithErrorCollection) SafeString added in v0.8.7

func (it *ResultsWithErrorCollection) SafeString() string

func (*ResultsWithErrorCollection) SafeValues added in v0.8.7

func (it *ResultsWithErrorCollection) SafeValues() []string

func (*ResultsWithErrorCollection) SafeValuesPtr added in v0.8.7

func (it *ResultsWithErrorCollection) SafeValuesPtr() *[]string

func (*ResultsWithErrorCollection) String added in v0.7.6

func (it *ResultsWithErrorCollection) String() string

func (*ResultsWithErrorCollection) ToCollection added in v0.3.8

func (it *ResultsWithErrorCollection) ToCollection(
	isMakeClone bool,
) *Collection

type SimpleStringOnce added in v0.8.0

type SimpleStringOnce struct {
	Value        corestr.SimpleStringOnce
	ErrorWrapper *errorwrapper.Wrapper
}

func (*SimpleStringOnce) AsJsonContractsBinder added in v0.8.7

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

func (*SimpleStringOnce) AsValueWithErrorWrapperBinder added in v0.8.0

func (it *SimpleStringOnce) AsValueWithErrorWrapperBinder() errorwrapper.ValueWithErrorWrapperBinder

func (*SimpleStringOnce) Bool added in v0.8.0

func (it *SimpleStringOnce) Bool() bool

func (*SimpleStringOnce) Byte added in v0.8.0

func (it *SimpleStringOnce) Byte() byte

func (*SimpleStringOnce) Dispose added in v0.8.7

func (it *SimpleStringOnce) Dispose()

func (*SimpleStringOnce) ErrorWrapperInf added in v0.8.7

func (it *SimpleStringOnce) ErrorWrapperInf() errorwrapper.ErrWrapper

func (*SimpleStringOnce) HasError added in v0.8.0

func (it *SimpleStringOnce) HasError() bool

func (*SimpleStringOnce) HasIssuesOrEmpty added in v0.8.0

func (it *SimpleStringOnce) HasIssuesOrEmpty() bool

func (*SimpleStringOnce) HasIssuesOrWhitespace added in v0.8.0

func (it *SimpleStringOnce) HasIssuesOrWhitespace() bool

func (*SimpleStringOnce) HasSafeItems added in v0.8.0

func (it *SimpleStringOnce) HasSafeItems() bool

func (*SimpleStringOnce) Int added in v0.8.0

func (it *SimpleStringOnce) Int() int

func (*SimpleStringOnce) IsEmpty added in v0.8.0

func (it *SimpleStringOnce) IsEmpty() bool

func (*SimpleStringOnce) IsEmptyError added in v0.8.0

func (it *SimpleStringOnce) IsEmptyError() bool

func (*SimpleStringOnce) IsEmptyOrWhitespace added in v0.8.0

func (it *SimpleStringOnce) IsEmptyOrWhitespace() bool

func (*SimpleStringOnce) IsEqual added in v0.8.0

func (it *SimpleStringOnce) IsEqual(term string) bool

func (*SimpleStringOnce) IsEqualIgnoreCase added in v0.8.0

func (it *SimpleStringOnce) IsEqualIgnoreCase(term string) bool

func (*SimpleStringOnce) IsFailed added in v0.8.0

func (it *SimpleStringOnce) IsFailed() bool

func (*SimpleStringOnce) IsInvalid added in v0.8.9

func (it *SimpleStringOnce) IsInvalid() bool

func (*SimpleStringOnce) IsSuccess added in v0.8.0

func (it *SimpleStringOnce) IsSuccess() bool

func (*SimpleStringOnce) IsValid added in v0.8.0

func (it *SimpleStringOnce) IsValid() bool

func (SimpleStringOnce) Json added in v0.8.0

func (it SimpleStringOnce) Json() corejson.Result

func (SimpleStringOnce) JsonModelAny added in v0.8.0

func (it SimpleStringOnce) JsonModelAny() interface{}

func (*SimpleStringOnce) JsonParseSelfInject added in v0.8.0

func (it *SimpleStringOnce) JsonParseSelfInject(jsonResult *corejson.Result) error

func (SimpleStringOnce) JsonPtr added in v0.8.0

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

func (*SimpleStringOnce) SafeString added in v0.8.7

func (it *SimpleStringOnce) SafeString() string

func (*SimpleStringOnce) SplitLines added in v0.8.0

func (it *SimpleStringOnce) SplitLines() []string

func (*SimpleStringOnce) SplitLinesSimpleSlice added in v0.8.0

func (it *SimpleStringOnce) SplitLinesSimpleSlice() *corestr.SimpleSlice

func (SimpleStringOnce) String added in v0.8.0

func (it SimpleStringOnce) String() string

func (*SimpleStringOnce) ValidValue added in v0.8.0

func (it *SimpleStringOnce) ValidValue() *corestr.ValidValue

Jump to

Keyboard shortcuts

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