errint

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

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

func Empty added in v0.7.6

func Empty() *Result

func EmptyErrorResult

func EmptyErrorResult(
	result int,
) *Result

func Error added in v0.1.9

func Error(
	errType errtype.Variation,
	err error,
) *Result

func ErrorWrapper added in v0.2.0

func ErrorWrapper(
	errW *errorwrapper.Wrapper,
) *Result

func New

func New(
	result int,
	errW *errorwrapper.Wrapper,
) *Result

func (*Result) AsValueWithErrorWrapperBinder added in v0.7.6

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

func (*Result) Byte added in v0.7.6

func (it *Result) Byte() byte

func (*Result) HasError added in v0.4.9

func (it *Result) HasError() bool

func (*Result) HasIssuesOrEmpty added in v0.7.6

func (it *Result) HasIssuesOrEmpty() bool

func (*Result) HasSafeItems added in v0.7.6

func (it *Result) HasSafeItems() bool

func (*Result) Int added in v0.7.6

func (it *Result) Int() int

func (*Result) IsEmpty added in v0.7.6

func (it *Result) IsEmpty() bool

func (*Result) IsEmptyError added in v0.4.9

func (it *Result) IsEmptyError() bool

func (*Result) IsFailed added in v0.7.6

func (it *Result) IsFailed() bool

func (*Result) IsSafeValidRange added in v0.4.9

func (it *Result) IsSafeValidRange(min, max int) bool

func (*Result) IsSuccess added in v0.7.6

func (it *Result) IsSuccess() bool

func (*Result) IsValid added in v0.7.6

func (it *Result) IsValid() bool

func (*Result) IsValidRange added in v0.4.9

func (it *Result) IsValidRange(min, max int) 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) String added in v0.7.6

func (it *Result) String() string

type Result2

type Result2 struct {
	Result
	Value2 int
}

func EmptyErrorNew2 added in v0.7.6

func EmptyErrorNew2(
	errorWrapper *errorwrapper.Wrapper,
) *Result2

func EmptyNew2 added in v0.7.6

func EmptyNew2() *Result2

func New2

func New2(
	result,
	result2 int,
	wrapper *errorwrapper.Wrapper,
) *Result2

type Result3

type Result3 struct {
	Result2
	Value3 int
}

func EmptyNew3 added in v0.7.6

func EmptyNew3() *Result3

func EmptyNew3UsingErrorWrapper added in v0.7.6

func EmptyNew3UsingErrorWrapper(errWp *errorwrapper.Wrapper) *Result3

func New3

func New3(
	result,
	result2,
	result3 int,
	errorWrapper *errorwrapper.Wrapper,
) *Result3

type ResultWithApplicable

type ResultWithApplicable struct {
	Result
	IsApplicable bool
}

func EmptyErrorApplicableResult

func EmptyErrorApplicableResult(
	result int,
	isApplicable bool,
) *ResultWithApplicable

func NewApplicable

func NewApplicable(
	result int,
	isApplicable bool,
	errWrapper *errorwrapper.Wrapper,
) *ResultWithApplicable

func NewApplicableError added in v0.7.6

func NewApplicableError(
	errWrapper *errorwrapper.Wrapper,
) *ResultWithApplicable

type ResultWithApplicable2

type ResultWithApplicable2 struct {
	Result2
	IsApplicable bool
}

func EmptyErrorApplicableResult2

func EmptyErrorApplicableResult2(
	result,
	result2 int,
	isApplicable bool,
) *ResultWithApplicable2

func ErrorApplicableResult2 added in v0.7.6

func ErrorApplicableResult2(
	errorWrapper *errorwrapper.Wrapper,
) *ResultWithApplicable2

func NewApplicable2

func NewApplicable2(
	result,
	result2 int,
	isApplicable bool,
	errorWrapper *errorwrapper.Wrapper,
) *ResultWithApplicable2

type Results

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

func EmptyErrorResults

func EmptyErrorResults(
	values ...int,
) *Results

func EmptyResults added in v0.7.5

func EmptyResults() *Results

func EmptyResultsWithError added in v0.7.5

func EmptyResultsWithError(
	errorWrapper *errorwrapper.Wrapper,
) *Results

func NewResults

func NewResults(
	errWrapper *errorwrapper.Wrapper,
	values ...int,
) *Results

func ResultsError added in v0.0.5

func ResultsError(
	variation errtype.Variation,
	err error,
) *Results

func (*Results) AsValuesWithErrorWrapperBinder added in v0.7.6

func (it *Results) AsValuesWithErrorWrapperBinder() errinf.ValuesWithErrorWrapperBinder

func (*Results) HasAnyItem added in v0.7.3

func (it *Results) HasAnyItem() bool

func (*Results) HasError added in v0.3.8

func (it *Results) HasError() bool

func (*Results) HasIssuesOrEmpty added in v0.3.8

func (it *Results) HasIssuesOrEmpty() bool

func (*Results) HasSafeItems added in v0.3.8

func (it *Results) HasSafeItems() bool

HasSafeItems No errors and has items

func (*Results) IsEmpty added in v0.7.3

func (it *Results) IsEmpty() bool

func (*Results) IsEmptyError added in v0.3.8

func (it *Results) IsEmptyError() bool

func (*Results) IsFailed added in v0.7.6

func (it *Results) IsFailed() bool

func (*Results) IsSuccess added in v0.7.6

func (it *Results) IsSuccess() bool

func (*Results) IsValid added in v0.7.6

func (it *Results) IsValid() bool

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) Length added in v0.7.3

func (it *Results) Length() int

func (*Results) String added in v0.7.6

func (it *Results) String() string

func (*Results) ValueMust added in v0.3.8

func (it *Results) ValueMust() *[]int

func (*Results) ValueNonPtr added in v0.7.3

func (it *Results) ValueNonPtr() []int

type ResultsWithErrorCollection added in v0.3.8

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

func EmptyResultsWithErrorCollection added in v0.3.8

func EmptyResultsWithErrorCollection() *ResultsWithErrorCollection

func NewResultsWithErrorCollection added in v0.3.8

func NewResultsWithErrorCollection(
	values []int,
	errCollection *errwrappers.Collection,
) *ResultsWithErrorCollection

func NewResultsWithErrorCollectionUsingErrorCollection added in v0.3.8

func NewResultsWithErrorCollectionUsingErrorCollection(
	errCollection *errwrappers.Collection,
) *ResultsWithErrorCollection

func NewResultsWithErrorCollectionUsingType added in v0.7.6

func NewResultsWithErrorCollectionUsingType(
	errType errtype.Variation,
) *ResultsWithErrorCollection

func NewResultsWithErrorCollectionUsingTypeError added in v0.7.6

func NewResultsWithErrorCollectionUsingTypeError(
	errType errtype.Variation,
	err error,
) *ResultsWithErrorCollection

func NewResultsWithErrorCollectionUsingTypeMessage added in v0.7.6

func NewResultsWithErrorCollectionUsingTypeMessage(
	errType errtype.Variation,
	msg string,
) *ResultsWithErrorCollection

func (*ResultsWithErrorCollection) AsValuesWithErrorWrapperBinder added in v0.7.6

func (it *ResultsWithErrorCollection) AsValuesWithErrorWrapperBinder() errinf.ValuesWithErrorWrapperBinder

func (*ResultsWithErrorCollection) HasAnyItem added in v0.7.6

func (it *ResultsWithErrorCollection) HasAnyItem() bool

func (*ResultsWithErrorCollection) HasError added in v0.3.8

func (it *ResultsWithErrorCollection) HasError() bool

func (*ResultsWithErrorCollection) HasIssuesOrEmpty added in v0.3.8

func (it *ResultsWithErrorCollection) HasIssuesOrEmpty() bool

func (*ResultsWithErrorCollection) HasSafeItems added in v0.3.8

func (it *ResultsWithErrorCollection) HasSafeItems() bool

HasSafeItems No errors and has items

func (*ResultsWithErrorCollection) IsEmpty added in v0.7.6

func (it *ResultsWithErrorCollection) IsEmpty() bool

func (*ResultsWithErrorCollection) IsEmptyError added in v0.3.8

func (it *ResultsWithErrorCollection) IsEmptyError() bool

func (*ResultsWithErrorCollection) IsEmptyItems added in v0.3.8

func (it *ResultsWithErrorCollection) IsEmptyItems() bool

func (*ResultsWithErrorCollection) IsFailed added in v0.7.6

func (it *ResultsWithErrorCollection) IsFailed() 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) String added in v0.7.6

func (it *ResultsWithErrorCollection) String() string

func (*ResultsWithErrorCollection) ValueMust added in v0.3.8

func (it *ResultsWithErrorCollection) ValueMust() *[]int

func (*ResultsWithErrorCollection) ValueNonPtr added in v0.7.6

func (it *ResultsWithErrorCollection) ValueNonPtr() []int

Jump to

Keyboard shortcuts

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