errwonce

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	// contains filtered or unexported fields
}

func New

func New(initializerFunc func() *errorwrapper.Wrapper) Instance

func NewPtr

func NewPtr(initializerFunc func() *errorwrapper.Wrapper) *Instance

func NewPtrUsingErrFunc

func NewPtrUsingErrFunc(errType errtype.Variation, initializerFunc func() error) *Instance

func (*Instance) ConcatNew

func (it *Instance) ConcatNew(messages ...string) error

func (*Instance) ConcatNewErrors

func (it *Instance) ConcatNewErrors(
	startSkipStackIndex int,
	errs ...error,
) *errorwrapper.Wrapper

func (*Instance) ConcatNewString

func (it *Instance) ConcatNewString(messages ...string) string

func (*Instance) ConcatNewWrapper

func (it *Instance) ConcatNewWrapper(
	startSkipStackIndex int,
	messages ...string,
) *errorwrapper.Wrapper

func (*Instance) ConcatNewWrapperUsingAnother

func (it *Instance) ConcatNewWrapperUsingAnother(
	startSkipStackIndex int,
	errWrapper *errorwrapper.Wrapper,
) *errorwrapper.Wrapper

func (*Instance) ConcatNewWrapperUsingError

func (it *Instance) ConcatNewWrapperUsingError(
	startSkipStackIndex int,
	err error,
) *errorwrapper.Wrapper

func (Instance) ErrWrap added in v1.0.5

func (it Instance) ErrWrap() *errorwrapper.Wrapper

func (Instance) ErrorWrapper added in v0.9.6

func (it Instance) ErrorWrapper() *errorwrapper.Wrapper

func (Instance) FullString added in v0.9.6

func (it Instance) FullString() string

func (Instance) FullStringWithTraces added in v0.9.6

func (it Instance) FullStringWithTraces() string

func (*Instance) HandleError

func (it *Instance) HandleError()

HandleError with panic if error exist or else skip

Skip if no error type (NoError).

func (*Instance) HandleErrorWith

func (it *Instance) HandleErrorWith(messages ...string)

HandleErrorWith by concatenating message and then panic if error exist or else skip

Skip if no error type (NoError).

func (Instance) HasError

func (it Instance) HasError() bool

func (Instance) HasReferences added in v0.9.6

func (it Instance) HasReferences() bool

func (Instance) IsEmpty added in v0.9.6

func (it Instance) IsEmpty() bool

func (Instance) IsFailed added in v0.9.6

func (it Instance) IsFailed() bool

func (*Instance) IsMessageEqual

func (it *Instance) IsMessageEqual(msg string) bool

func (Instance) IsNull

func (it Instance) IsNull() bool

func (Instance) IsNullOrEmpty

func (it Instance) IsNullOrEmpty() bool

func (Instance) IsSuccess added in v0.9.6

func (it Instance) IsSuccess() bool

func (Instance) Json added in v0.9.6

func (it Instance) Json() corejson.Result

func (Instance) JsonPtr added in v0.9.6

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

func (Instance) MarshalJSON

func (it Instance) MarshalJSON() ([]byte, error)

func (*Instance) Message

func (it *Instance) Message() string

func (Instance) Serialize added in v0.9.6

func (it Instance) Serialize() ([]byte, error)

func (Instance) SerializeMust added in v0.9.6

func (it Instance) SerializeMust() []byte

func (Instance) String

func (it Instance) String() string

func (*Instance) UnmarshalJSON

func (it *Instance) UnmarshalJSON(data []byte) error

func (*Instance) Value

func (it *Instance) Value() *errorwrapper.Wrapper

Jump to

Keyboard shortcuts

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