errinf

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorGetter

type ErrorGetter interface {
	Error() error
}

type ErrorHandler

type ErrorHandler interface {
	// HandleError Only call panic if has any error
	HandleError()
}

type ErrorMessageHandler

type ErrorMessageHandler interface {
	HandleErrorWithMsg(newMessage string)
}

type ErrorRefMessageHandler

type ErrorRefMessageHandler interface {
	HandleErrorWithRefs(
		newMessage string,
		refVar,
		refVal interface{},
	)
}

type ErrorWrapperCloner

type ErrorWrapperCloner interface {
	ClonePtr() *errorwrapper.Wrapper
}

type ErrorWrapperConcatenateNewer

type ErrorWrapperConcatenateNewer interface {
	ConcatNew(err error) *errorwrapper.Wrapper
	ConcatNewMessage(errMsg string) *errorwrapper.Wrapper
	ConcatNewErrors(errItems ...error) *errorwrapper.Wrapper
	ConcatNewWrapperError(another *errorwrapper.Wrapper) *errorwrapper.Wrapper
}

type ErrorWrapperGetter

type ErrorWrapperGetter interface {
	ErrorWrapper() *errorwrapper.Wrapper
}

type ErrorWrapperInterfaceGetter

type ErrorWrapperInterfaceGetter interface {
	ErrorWrapperInterface() ErrWrapper
}

type ErrorWrapperTypeStringer

type ErrorWrapperTypeStringer interface {
	TypeString() *string
	GetTypeString() string
	GetTypeWithCodeString() string
	GetTypeWithCodeStringPtr() *string
}

type ErrorWrapperValuer

type ErrorWrapperValuer interface {
	Value() error
}

type FatalLogger

type FatalLogger interface {
	LogFatal()
}

type FullErrorWrapperStringer

type FullErrorWrapperStringer interface {
	FullString() string
	FullStringPtr() *string
}

type HasErrorChecker added in v0.7.6

type HasErrorChecker interface {
	HasError() bool
}

type HasSafeItemsChecker added in v0.7.6

type HasSafeItemsChecker interface {
	// HasSafeItems returns true if has valid item or items and no error
	HasSafeItems() bool
}

type IsEmptyErrorChecker

type IsEmptyErrorChecker interface {
	IsEmptyError() bool
}

type IsFailedChecker added in v0.7.6

type IsFailedChecker interface {
	// IsFailed has error or any other issues, or alias for HasIssues or HasError
	IsFailed() bool
}

type IsSuccessChecker added in v0.7.6

type IsSuccessChecker interface {
	// IsSuccess No error
	IsSuccess() bool
}

type IsSuccessValidator added in v0.7.0

type IsSuccessValidator interface {
	IsValid
	IsSuccessChecker
	IsFailedChecker
}

type IsValid added in v0.7.0

type IsValid interface {
	// IsValid similar or alias for IsSuccessChecker
	IsValid() bool
}

type Logger

type Logger interface {
	Log()
}

type TypeOfErrorWrapper

type TypeOfErrorWrapper interface {
	Type() errtype.Variation
}

type ValueWithErrorWrapperBinder added in v0.7.6

type ValueWithErrorWrapperBinder interface {
	ValueWithErrorWrapper
	AsValueWithErrorWrapperBinder() ValueWithErrorWrapperBinder
}

type ValuesWithErrorWrapper added in v0.7.6

type ValuesWithErrorWrapperBinder added in v0.7.6

type ValuesWithErrorWrapperBinder interface {
	ValuesWithErrorWrapper
	AsValuesWithErrorWrapperBinder() ValuesWithErrorWrapperBinder
}

Jump to

Keyboard shortcuts

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