errtype

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: MIT Imports: 6 Imported by: 41

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VariantStructure

type VariantStructure struct {
	TypeName string
	Message  msgtype.Variation
	Variant  Variation
}

func (VariantStructure) Combine

func (variantStructure VariantStructure) Combine(
	additionalMessage,
	varName string,
	val interface{},
) string

func (VariantStructure) CombineNoRefs

func (variantStructure VariantStructure) CombineNoRefs(
	additionalMessage string,
) string

func (VariantStructure) CombineRefs

func (variantStructure VariantStructure) CombineRefs(
	additionalMessage string,
	refsCompiled *string,
) string

Conditional checks if refs compile is empty then ignore it and prints using CombineNoRefs

func (VariantStructure) Error

func (variantStructure VariantStructure) Error(
	additionalMessage,
	varName string,
	val interface{},
) error

func (VariantStructure) ErrorNoRefs

func (variantStructure VariantStructure) ErrorNoRefs(
	additionalMessage string,
) error

func (VariantStructure) MsgReferenceValues

func (variantStructure VariantStructure) MsgReferenceValues(msg, referenceValues string) string

func (VariantStructure) Panic

func (variantStructure VariantStructure) Panic(
	additionalMessage,
	varName string,
	val interface{},
)

func (VariantStructure) PanicNoRefs

func (variantStructure VariantStructure) PanicNoRefs(
	additionalMessage string,
)

func (VariantStructure) ReferenceValues

func (variantStructure VariantStructure) ReferenceValues(referenceValues string) string

func (VariantStructure) String

func (variantStructure VariantStructure) String() string

func (VariantStructure) StringPtr

func (variantStructure VariantStructure) StringPtr() *string

type Variation

type Variation byte
const (
	Generic                   Variation = iota
	NullOrEmptyReference      Variation = 1
	EmptyPointerOrNullPointer Variation = 2
	Empty                     Variation = 3
	Unknown                   Variation = 4

	// Input output error
	IO Variation = 5
	// Read write error
	ReadWrite Variation = 6

	// Data is not as expected
	InvalidInput                    Variation = 7
	InvalidOutput                   Variation = 8
	InvalidCondition                Variation = 9
	EmptyString                     Variation = 10
	EmptySlice                      Variation = 11
	EmptyArray                      Variation = 12
	EmptyMap                        Variation = 13
	EmptyResult                     Variation = 14
	UnexpectedInteger               Variation = 15
	UnexpectedString                Variation = 16
	UnexpectedFloat                 Variation = 17
	UnexpectedValue                 Variation = 18
	UnexpectedArray                 Variation = 19
	UnexpectedArrayLength           Variation = 20
	UnexpectedSliceLength           Variation = 21
	UnexpectedMapLength             Variation = 22
	UnexpectedInterface             Variation = 23
	UnexpectedType                  Variation = 24
	UnexpectedPointer               Variation = 25
	UnexpectedStatus                Variation = 26
	UnexpectedFilePath              Variation = 27
	UnexpectedDirectory             Variation = 28
	UnexpectedCondition             Variation = 29
	OutOfRangeValue                 Variation = 30
	OutOfRangeInteger               Variation = 31
	OutOfRangeString                Variation = 32
	OutOfRangeFloat                 Variation = 33
	OutOfRangeType                  Variation = 34
	OutOfRangeCategory              Variation = 35
	OutOfRangeLength                Variation = 36
	OutOfRangeStatus                Variation = 37
	Warning                         Variation = 38
	DevelopmentEnvironment          Variation = 39
	ProductionEnvironment           Variation = 40
	TestEnvironment                 Variation = 41
	AssertionFailed                 Variation = 42
	EmptyStatus                     Variation = 43
	FileNotExist                    Variation = 44
	File                            Variation = 45
	FileWrite                       Variation = 46
	FileAccess                      Variation = 47
	FileAppend                      Variation = 48
	DirectoryNotExist               Variation = 49
	Directory                       Variation = 50
	DirectoryAccess                 Variation = 51
	Execution                       Variation = 52
	Process                         Variation = 53
	LockFailed                      Variation = 54
	EmptyContent                    Variation = 55
	EmptyFile                       Variation = 56
	EmptyDirectory                  Variation = 57
	NotContainsExpectation          Variation = 58
	ContainsExpectation             Variation = 59
	EqualExpectation                Variation = 60
	NotEqualExpectation             Variation = 61
	LessThanExpectation             Variation = 62
	LessThanEqualsExpectation       Variation = 63
	GreaterThanExpectation          Variation = 64
	GreaterThanEqualsExpectation    Variation = 65
	NotEmptyFile                    Variation = 66
	Math                            Variation = 67
	Calculation                     Variation = 68
	Conversion                      Variation = 69
	ConversionValueToString         Variation = 70
	ConversionValueToInteger        Variation = 71
	ConversionValueToFloat          Variation = 72
	ConversionValueToArray          Variation = 73
	ConversionValueToSlice          Variation = 74
	ConversionValueToMap            Variation = 75
	ConversionValueToInterface      Variation = 76
	ConversionValueToStruct         Variation = 77
	ConversionValueToPointer        Variation = 78
	MathDivide                      Variation = 79
	Between                         Variation = 80
	NotBetween                      Variation = 81
	NotSupportParameter             Variation = 82
	NotSupportParameters            Variation = 83
	NotSupportFunction              Variation = 84
	NotSupportFunctions             Variation = 85
	NotSupportInjections            Variation = 86
	NotSupportValue                 Variation = 87
	NotSupportOperatingSystem       Variation = 88
	NotSupportArchitecture          Variation = 89
	NotSupportOsVersion             Variation = 90
	NotSupportGroups                Variation = 91
	NotSupportInWindows             Variation = 92
	NotSupportInLinux               Variation = 93
	NotSupportInMac                 Variation = 94
	NotSupportInUnix                Variation = 95
	NotSupportInAndroid             Variation = 96
	NotSupportVersion               Variation = 97
	UnexpectedVersion               Variation = 98
	NotImplemented                  Variation = 99
	FileOrDirectoryRelatedExecution Variation = 100
	SymbolicLink                    Variation = 101
	CommandExecution                Variation = 102
	CommandExecutionNotFound        Variation = 103
	NoError                         Variation = 104
	FileInfo                        Variation = 105
	InvalidDefaultSwitchCase        Variation = 106
	NotSupportedOption              Variation = 107
	CastingFailed                   Variation = 108
	EmptyFilePath                   Variation = 109
)

func (Variation) Combine

func (variation Variation) Combine(
	additionalMessage,
	varName string,
	val interface{},
) string

func (Variation) CombineNoRefs

func (variation Variation) CombineNoRefs(
	additionalMessage string,
) string

func (Variation) Error

func (variation Variation) Error(
	additionalMessage,
	varName string,
	val interface{},
) error

func (Variation) ErrorNoRefs

func (variation Variation) ErrorNoRefs(
	additionalMessage string,
) error

func (Variation) Is

func (variation Variation) Is(variant Variation) bool

func (Variation) IsAssertionFailed

func (variation Variation) IsAssertionFailed() bool

func (Variation) IsBetween

func (variation Variation) IsBetween() bool

func (Variation) IsCalculation

func (variation Variation) IsCalculation() bool

func (Variation) IsCommandExecution added in v0.0.2

func (variation Variation) IsCommandExecution() bool

func (Variation) IsCommandExecutionNotFound added in v0.0.2

func (variation Variation) IsCommandExecutionNotFound() bool

func (Variation) IsContainsExpectation

func (variation Variation) IsContainsExpectation() bool

func (Variation) IsConversion

func (variation Variation) IsConversion() bool

func (Variation) IsConversionValueToArray

func (variation Variation) IsConversionValueToArray() bool

func (Variation) IsConversionValueToFloat

func (variation Variation) IsConversionValueToFloat() bool

func (Variation) IsConversionValueToInteger

func (variation Variation) IsConversionValueToInteger() bool

func (Variation) IsConversionValueToInterface

func (variation Variation) IsConversionValueToInterface() bool

func (Variation) IsConversionValueToMap

func (variation Variation) IsConversionValueToMap() bool

func (Variation) IsConversionValueToPointer

func (variation Variation) IsConversionValueToPointer() bool

func (Variation) IsConversionValueToSlice

func (variation Variation) IsConversionValueToSlice() bool

func (Variation) IsConversionValueToString

func (variation Variation) IsConversionValueToString() bool

func (Variation) IsConversionValueToStruct

func (variation Variation) IsConversionValueToStruct() bool

func (Variation) IsDevelopmentEnvironment

func (variation Variation) IsDevelopmentEnvironment() bool

func (Variation) IsDirectoryAccess

func (variation Variation) IsDirectoryAccess() bool

func (Variation) IsDirectoryNotExist

func (variation Variation) IsDirectoryNotExist() bool

func (Variation) IsEmpty

func (variation Variation) IsEmpty() bool

func (Variation) IsEmptyArray

func (variation Variation) IsEmptyArray() bool

func (Variation) IsEmptyContent

func (variation Variation) IsEmptyContent() bool

func (Variation) IsEmptyDirectory

func (variation Variation) IsEmptyDirectory() bool

func (Variation) IsEmptyFile

func (variation Variation) IsEmptyFile() bool

func (Variation) IsEmptyMap

func (variation Variation) IsEmptyMap() bool

func (Variation) IsEmptyPtr

func (variation Variation) IsEmptyPtr() bool

func (Variation) IsEmptyResult

func (variation Variation) IsEmptyResult() bool

func (Variation) IsEmptySlice

func (variation Variation) IsEmptySlice() bool

func (Variation) IsEmptyStatus

func (variation Variation) IsEmptyStatus() bool

func (Variation) IsEmptyString

func (variation Variation) IsEmptyString() bool

func (Variation) IsEqualExpectation

func (variation Variation) IsEqualExpectation() bool

func (Variation) IsExecution

func (variation Variation) IsExecution() bool

func (Variation) IsFile

func (variation Variation) IsFile() bool

func (Variation) IsFileAccess

func (variation Variation) IsFileAccess() bool

func (Variation) IsFileAppend

func (variation Variation) IsFileAppend() bool

func (Variation) IsFileNotExist

func (variation Variation) IsFileNotExist() bool

func (Variation) IsFileOrDirectoryRelatedExecution added in v0.0.2

func (variation Variation) IsFileOrDirectoryRelatedExecution() bool

func (Variation) IsFileWrite

func (variation Variation) IsFileWrite() bool

func (Variation) IsGeneric

func (variation Variation) IsGeneric() bool

func (Variation) IsGreaterThanEqualsExpectation

func (variation Variation) IsGreaterThanEqualsExpectation() bool

func (Variation) IsGreaterThanExpectation

func (variation Variation) IsGreaterThanExpectation() bool

func (Variation) IsIO

func (variation Variation) IsIO() bool

func (Variation) IsInvalidCondition

func (variation Variation) IsInvalidCondition() bool

func (Variation) IsInvalidInput

func (variation Variation) IsInvalidInput() bool

func (Variation) IsInvalidOutput

func (variation Variation) IsInvalidOutput() bool

func (Variation) IsLessThanEqualsExpectation

func (variation Variation) IsLessThanEqualsExpectation() bool

func (Variation) IsLessThanExpectation

func (variation Variation) IsLessThanExpectation() bool

func (Variation) IsLockFailed

func (variation Variation) IsLockFailed() bool

func (Variation) IsMath

func (variation Variation) IsMath() bool

func (Variation) IsMathDivide

func (variation Variation) IsMathDivide() bool

func (Variation) IsNoError added in v0.0.2

func (variation Variation) IsNoError() bool

func (Variation) IsNotBetween

func (variation Variation) IsNotBetween() bool

func (Variation) IsNotContainsExpectation

func (variation Variation) IsNotContainsExpectation() bool

func (Variation) IsNotEmptyFile

func (variation Variation) IsNotEmptyFile() bool

func (Variation) IsNotEqualExpectation

func (variation Variation) IsNotEqualExpectation() bool

func (Variation) IsNotImplemented

func (variation Variation) IsNotImplemented() bool

func (Variation) IsNotSupportArchitecture

func (variation Variation) IsNotSupportArchitecture() bool

func (Variation) IsNotSupportFunction

func (variation Variation) IsNotSupportFunction() bool

func (Variation) IsNotSupportFunctions

func (variation Variation) IsNotSupportFunctions() bool

func (Variation) IsNotSupportGroups

func (variation Variation) IsNotSupportGroups() bool

func (Variation) IsNotSupportInAndroid

func (variation Variation) IsNotSupportInAndroid() bool

func (Variation) IsNotSupportInLinux

func (variation Variation) IsNotSupportInLinux() bool

func (Variation) IsNotSupportInMac

func (variation Variation) IsNotSupportInMac() bool

func (Variation) IsNotSupportInUnix

func (variation Variation) IsNotSupportInUnix() bool

func (Variation) IsNotSupportInWindows

func (variation Variation) IsNotSupportInWindows() bool

func (Variation) IsNotSupportInjections

func (variation Variation) IsNotSupportInjections() bool

func (Variation) IsNotSupportOperatingSystem

func (variation Variation) IsNotSupportOperatingSystem() bool

func (Variation) IsNotSupportOsVersion

func (variation Variation) IsNotSupportOsVersion() bool

func (Variation) IsNotSupportParameter

func (variation Variation) IsNotSupportParameter() bool

func (Variation) IsNotSupportParameters

func (variation Variation) IsNotSupportParameters() bool

func (Variation) IsNotSupportValue

func (variation Variation) IsNotSupportValue() bool

func (Variation) IsNotSupportVersion

func (variation Variation) IsNotSupportVersion() bool

func (Variation) IsNull

func (variation Variation) IsNull() bool

func (Variation) IsOutOfRangeCategory

func (variation Variation) IsOutOfRangeCategory() bool

func (Variation) IsOutOfRangeFloat

func (variation Variation) IsOutOfRangeFloat() bool

func (Variation) IsOutOfRangeInteger

func (variation Variation) IsOutOfRangeInteger() bool

func (Variation) IsOutOfRangeLength

func (variation Variation) IsOutOfRangeLength() bool

func (Variation) IsOutOfRangeStatus

func (variation Variation) IsOutOfRangeStatus() bool

func (Variation) IsOutOfRangeString

func (variation Variation) IsOutOfRangeString() bool

func (Variation) IsOutOfRangeType

func (variation Variation) IsOutOfRangeType() bool

func (Variation) IsOutOfRangeValue

func (variation Variation) IsOutOfRangeValue() bool

func (Variation) IsProcess

func (variation Variation) IsProcess() bool

func (Variation) IsProductionEnvironment

func (variation Variation) IsProductionEnvironment() bool

func (Variation) IsReadWrite

func (variation Variation) IsReadWrite() bool
func (variation Variation) IsSymbolicLink() bool

func (Variation) IsTestEnvironment

func (variation Variation) IsTestEnvironment() bool

func (Variation) IsUnexpectedArray

func (variation Variation) IsUnexpectedArray() bool

func (Variation) IsUnexpectedArrayLength

func (variation Variation) IsUnexpectedArrayLength() bool

func (Variation) IsUnexpectedCondition

func (variation Variation) IsUnexpectedCondition() bool

func (Variation) IsUnexpectedDirectory

func (variation Variation) IsUnexpectedDirectory() bool

func (Variation) IsUnexpectedFilePath

func (variation Variation) IsUnexpectedFilePath() bool

func (Variation) IsUnexpectedFloat

func (variation Variation) IsUnexpectedFloat() bool

func (Variation) IsUnexpectedInteger

func (variation Variation) IsUnexpectedInteger() bool

func (Variation) IsUnexpectedInterface

func (variation Variation) IsUnexpectedInterface() bool

func (Variation) IsUnexpectedMapLength

func (variation Variation) IsUnexpectedMapLength() bool

func (Variation) IsUnexpectedPointer

func (variation Variation) IsUnexpectedPointer() bool

func (Variation) IsUnexpectedSliceLength

func (variation Variation) IsUnexpectedSliceLength() bool

func (Variation) IsUnexpectedStatus

func (variation Variation) IsUnexpectedStatus() bool

func (Variation) IsUnexpectedString

func (variation Variation) IsUnexpectedString() bool

func (Variation) IsUnexpectedType

func (variation Variation) IsUnexpectedType() bool

func (Variation) IsUnexpectedValue

func (variation Variation) IsUnexpectedValue() bool

func (Variation) IsUnexpectedVersion

func (variation Variation) IsUnexpectedVersion() bool

func (Variation) IsUnknown

func (variation Variation) IsUnknown() bool

func (Variation) IsUnknownOrGeneric

func (variation Variation) IsUnknownOrGeneric() bool

func (Variation) IsWarning

func (variation Variation) IsWarning() bool

func (Variation) Panic

func (variation Variation) Panic(
	additionalMessage,
	varName string,
	val interface{},
)

func (Variation) PanicNoRefs

func (variation Variation) PanicNoRefs(
	additionalMessage string,
)

func (Variation) String

func (variation Variation) String() string

func (Variation) StringPtr

func (variation Variation) StringPtr() *string

func (Variation) VariantStructure

func (variation Variation) VariantStructure() VariantStructure

func (Variation) VariantStructurePtr

func (variation Variation) VariantStructurePtr() *VariantStructure

Jump to

Keyboard shortcuts

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