errnew

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: 30 Imported by: 38

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Messages                      = newMessagesToErrorWrapperCreator{}
	Message                       = newMessageToErrorWrapperCreator{}
	Enum                          = newEnumToErrorWrapperCreator{}
	Ref                           = newRefToErrorWrapperCreator{}
	Refs                          = newReferencesToErrorWrapperCreator{}
	Path                          = newPathToErrorWrapperCreator{}
	Merge                         = newMergeToErrorWrapperCreator{}
	FromTo                        = newFromToErrorWrapperCreator{}
	Null                          = newNullToErrorWrapperCreator{}
	Type                          = newTypeToWrapperCreator{}
	Friendly                      = newFriendlyErrorCreator{}
	Error                         = newErrorToWrapperCreator{}
	Range                         = newRangeWrapperCreator{}
	Unmarshal                     = newUnmarshalWrapperCreator{} // refers to unmarshal related quick errors
	Fmt                           = newFormatterCreator{}
	MessageWithRef                = newMessageWithRefCreator{}
	Json                          = newJsonToWrapperCreator{}
	Payload                       = newPayloadToErrorWrapperCreator{}
	Reflect                       = newReflectErrToWrapperCreator{}
	DeserializeTo                 = newDeserializeToWrapperCreator{} // actually helps to deserialize to something
	ErrInterface                  = newErrorInterfaceToWrapperCreator{}
	SrcDst                        = newSourceDestinationToErrorWrapperCreator{}
	MappingFailed                 = Messages.Single(errtype.MappingFailed, "Cannot map the given data to expected data format from the dictionary or map.")
	InvalidSystemUser             = Messages.Single(errtype.SysUserInvalid, "System user not found or id has issues.")
	InvalidSystemGroup            = Messages.Single(errtype.SysGroupInvalid, "System group not found or id has issues.")
	FinalizedResourceCannotAccess = Type.Create(errtype.FinalizedResourceCannotAccess)
	NotFound                      = newNotFoundErrCreator{}
	EmptyString                   = Type.Create(errtype.EmptyString)
	Unexpected                    = Type.Create(errtype.Unexpected)
	InvalidInput                  = Type.Create(errtype.InvalidInput)
	Invalid                       = Type.Create(errtype.Invalid)
	InvalidOption                 = Type.Create(errtype.InvalidOption)
)

Functions

func Empty added in v0.0.5

func Empty() *errorwrapper.Wrapper

func NotImpl

func NotImpl(
	url string,
) *errorwrapper.Wrapper

func NotImplPanic added in v0.4.7

func NotImplPanic(
	url string,
	todoMessage string,
)

func NotImplPtrUsingStackSkip added in v0.7.9

func NotImplPtrUsingStackSkip(
	stackSkipIndex int,
	url string,
) *errorwrapper.Wrapper

func NotSupportedOption added in v0.1.4

func NotSupportedOption(
	varName string, val interface{},
	messages ...string,
) *errorwrapper.Wrapper

func NotSupportedOptionUsingStackSkip added in v0.8.9

func NotSupportedOptionUsingStackSkip(
	stackSkipIndex int,
	varName string, val interface{},
	messages ...string,
) *errorwrapper.Wrapper

func OnEmpty added in v0.9.2

func OnEmpty(
	wrapper *errorwrapper.Wrapper,
) *errorwrapper.Wrapper

func OutOfRange

func OutOfRange(
	start, end, ranges interface{},
	message string,
) *errorwrapper.Wrapper

func WasExpecting added in v0.4.9

func WasExpecting(
	variant errtype.Variation,
	title string,
	expecting, actual interface{},
) *errorwrapper.Wrapper

func WasExpectingUsingStackSkip added in v0.7.9

func WasExpectingUsingStackSkip(
	stackSkipIndex int,
	variant errtype.Variation,
	title string,
	expecting, actual interface{},
) *errorwrapper.Wrapper

Types

This section is empty.

Jump to

Keyboard shortcuts

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