errors

package
v2.0.0-...-4b7107c Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Details - Modifier (any) to add Details to an error
	Details = "(%v)"

	// DuplicateEntry - indicates that an operation failed because a duplicate was created.
	DuplicateEntry             = "duplicate entry"
	IndexOutOfRange            = "index out of range"
	InternalError              = "internal error"
	InvalidCommand             = "unknown command"
	InvalidCommandWithDetail   = InvalidCommand + Details
	InvalidContextId           = "invalid contextId"
	InvalidContextIdWithDetail = InvalidContextId + Details
	InvalidInput               = "invalid input"
	LockCheckFailed            = "lock check failed"
	MalformedGuid              = "malformed GUID"
	//MissingArguments - One or more expected inputs are missing
	MissingArguments             = "missing argument"
	MissingArgWithDetail         = MissingArguments + Details
	MissingColor                 = "Missing color"
	MissingContextId             = "missing contextId (uuid)"
	MissingField                 = "missing field"
	NotFound                     = "not found"
	NotInitialized               = "not initialized"
	ReadOnly                     = "read only"
	TypeMismatch                 = "type mismatch"
	TypeMismatchWithDetail       = TypeMismatch + Details
	UnableToDetectFamily         = "unable to detect operating system family"
	UnknownCommand               = "Unknown command"
	UnsupportedOpsys             = "unsupported operating system"
	UnsupportedOpsysWithDetail   = UnsupportedOpsys + Details
	UnsupportedVersion           = "unsupported version"
	UnsupportedVersionWithDetail = UnsupportedVersion + Details
)
View Source
const (
	TimeConversionError = "error converting time"
)

Variables

This section is empty.

Functions

func Swallow

func Swallow(err error)

Swallow - Used in cases where you want to ignore the error returned but be explicit that you are doing so.

Types

This section is empty.

Jump to

Keyboard shortcuts

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