errbyte

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2021 License: MIT Imports: 5 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Result

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

func EmptyErrorResult

func EmptyErrorResult(
	result byte,
) Result

func EmptyErrorResultPtr

func EmptyErrorResultPtr(
	result byte,
) *Result

func Error added in v0.1.9

func Error(
	err error,
) Result

func ErrorPtr added in v0.1.9

func ErrorPtr(
	err error,
) *Result

func ErrorWrapper added in v0.1.9

func ErrorWrapper(
	errW *errorwrapper.Wrapper,
) Result

func ErrorWrapperPtr added in v0.1.9

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

func New

func New(
	result byte,
	variation errtype.Variation,
	errMsg string,
) Result

func NewError

func NewError(result byte, err error) Result

func NewErrorWithType

func NewErrorWithType(
	result byte,
	variation errtype.Variation,
	err error,
) Result

func NewPtr

func NewPtr(
	result byte,
	variation errtype.Variation,
	errMsg string,
) *Result

func NewSimple

func NewSimple(result byte, variation errtype.Variation) Result

func NewUsingWrapper added in v0.1.9

func NewUsingWrapper(
	result byte,
	errW *errorwrapper.Wrapper,
) Result

func NewUsingWrapperPtr added in v0.2.0

func NewUsingWrapperPtr(
	result byte,
	errW *errorwrapper.Wrapper,
) *Result

type Result2

type Result2 struct {
	Value        byte
	Value2       byte
	ErrorWrapper *errorwrapper.Wrapper
}

func New2

func New2(
	result,
	result2 byte,
	variation errtype.Variation,
	errMsg string,
) Result2

func New2Error added in v0.1.9

func New2Error(
	err error,
) Result2

func New2Ptr

func New2Ptr(
	result,
	result2 byte,
	variation errtype.Variation,
	errMsg string,
) *Result2

func (*Result2) IsAll

func (result2 *Result2) IsAll(n byte, compare corecomparator.Compare) bool

func (*Result2) IsAny

func (result2 *Result2) IsAny(n byte, compare corecomparator.Compare) bool

type Result3

type Result3 struct {
	Value        byte
	Value2       byte
	Value3       byte
	ErrorWrapper *errorwrapper.Wrapper
}

func New3

func New3(
	result,
	result2,
	result3 byte,
	variation errtype.Variation,
	errMsg string,
) Result3

func New3Error added in v0.1.9

func New3Error(
	err error,
) Result3

func New3Ptr

func New3Ptr(
	result,
	result2,
	result3 byte,
	variation errtype.Variation,
	errMsg string,
) *Result3

func (*Result3) IsAll

func (result3 *Result3) IsAll(n byte, compare corecomparator.Compare) bool

func (*Result3) IsAny

func (result3 *Result3) IsAny(n byte, compare corecomparator.Compare) bool

type ResultWithApplicable

type ResultWithApplicable struct {
	Value        byte
	IsApplicable bool
	ErrorWrapper *errorwrapper.Wrapper
}

func EmptyErrorApplicableResult

func EmptyErrorApplicableResult(
	result byte,
	isApplicable bool,
) ResultWithApplicable

func EmptyErrorApplicableResultPtr

func EmptyErrorApplicableResultPtr(
	result byte,
	isApplicable bool,
) *ResultWithApplicable

func NewApplicable

func NewApplicable(
	result byte,
	isApplicable bool,
	variation errtype.Variation,
	errMsg string,
) ResultWithApplicable

func NewApplicableError added in v0.1.9

func NewApplicableError(
	isApplicable bool,
	err error,
) ResultWithApplicable

func NewApplicablePtr

func NewApplicablePtr(
	result byte,
	isApplicable bool,
	variation errtype.Variation,
	errMsg string,
) *ResultWithApplicable

type ResultWithApplicable2

type ResultWithApplicable2 struct {
	Value        byte
	Value2       byte
	IsApplicable bool
	ErrorWrapper *errorwrapper.Wrapper
}

func EmptyErrorApplicableResult2

func EmptyErrorApplicableResult2(
	result byte,
	result2 byte,
	isApplicable bool,
) ResultWithApplicable2

func EmptyErrorApplicableResult2Ptr

func EmptyErrorApplicableResult2Ptr(
	result byte,
	result2 byte,
	isApplicable bool,
) *ResultWithApplicable2

func NewApplicable2

func NewApplicable2(
	result,
	result2 byte,
	isApplicable bool,
	variation errtype.Variation,
	errMsg string,
) ResultWithApplicable2

func NewApplicable2Ptr

func NewApplicable2Ptr(
	result,
	result2 byte,
	isApplicable bool,
	variation errtype.Variation,
	errMsg string,
) *ResultWithApplicable2

type Results

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

func EmptyErrorResults

func EmptyErrorResults(
	values ...byte,
) Results

func EmptyErrorResultsPtr

func EmptyErrorResultsPtr(
	values *[]byte,
) *Results

func NewResults

func NewResults(
	variation errtype.Variation,
	errMsg string,
	values ...byte,
) Results

func NewResultsPtr

func NewResultsPtr(
	values *[]byte,
	err error,
) *Results

func NewResultsUsingWrapperPtr added in v0.2.1

func NewResultsUsingWrapperPtr(
	values *[]byte,
	errW *errorwrapper.Wrapper,
) *Results

func ResultsError added in v0.0.5

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

func (*Results) IsEmptyResult

func (results *Results) IsEmptyResult() bool

func (*Results) IsNull

func (results *Results) IsNull() bool

Jump to

Keyboard shortcuts

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