Documentation
¶
Index ¶
- Constants
- func Combine(genericMsg, otherMsg, reference string) string
- func CombineWithMsgType(genericMsg Variation, otherMsg string, reference interface{}) string
- func PanicOnIndexOutOfRange(length int, indexes *[]int)
- func PanicRangeNotMeet(otherMsg string, rangeStart interface{}, rangeEnd interface{}, ...) string
- func RangeNotMeet(otherMsg string, rangeStart interface{}, rangeEnd interface{}, ...) string
- func ToValueString(reference interface{}) string
- type Variation
- func (variation Variation) Combine(otherMsg string, reference interface{}) string
- func (variation Variation) Error(otherMsg string, reference interface{}) error
- func (variation Variation) ErrorNoRefs(otherMsg string) error
- func (variation Variation) HandleUsingPanic(otherMsg string, reference interface{})
- func (variation Variation) String() string
Constants ¶
View Source
const ( ReferenceStart = " Reference ( " ReferenceEnd = " )" CannotConvertStringToByteForLessThanZero = "Cannot convert string to byte. String cannot be less than 0 for byte." CannotConvertStringToByteForMoreThan255 = "Cannot convert string to byte. String is a number but larger than byte size. At max it could be 255." CannotConvertStringToByte = "Cannot convert string to byte." )
Variables ¶
This section is empty.
Functions ¶
func CombineWithMsgType ¶
func PanicOnIndexOutOfRange ¶ added in v0.2.0
func PanicRangeNotMeet ¶ added in v0.0.4
func RangeNotMeet ¶ added in v0.0.4
func ToValueString ¶
func ToValueString(reference interface{}) string
Types ¶
type Variation ¶
type Variation string
const ( InvalidRequest Variation = "Invalid : request, cannot process it." InvalidNullPointer Variation = "Invalid : null pointer, cannot process it." InvalidEmptyValue Variation = "Invalid : empty value given, cannot process it." OutOfRange Variation = "Out of range : given value, cannot process it." OutOfRangeLength Variation = "Out of range : given data length, cannot process it." InvalidEmptyPathErrorMessage Variation = "Invalid : empty path given, cannot process it." InvalidStringErrorMessage Variation = "Invalid : string cannot process it." InvalidIntegerErrorMessage Variation = "Invalid : integer cannot process it." InvalidFloatErrorMessage Variation = "Invalid : float cannot process it." InvalidTypeErrorMessage Variation = "Invalid : type cannot process it." InvalidPointerErrorMessage Variation = "Invalid : pointer cannot process it." InvalidValueErrorMessage Variation = "Invalid : value cannot process it." InvalidCharErrorMessage Variation = "Invalid : character cannot process it." InvalidArgumentsErrorMessage Variation = "Invalid : arguments or argument cannot process it." InvalidAnyPathEmptyErrorMessage Variation = "Invalid : any of the given path was empty, thus cannot process it." UnsupportedOperatingSystem Variation = "Unsupported : given operating system is not supported by the executable or system!" UnsupportedArchitecture Variation = "Unsupported : given operating system architecture is not supported by the executable or system!" UnsupportedCategory Variation = "Unsupported : given category or type or variant is not supported by the executable or system!" UnsupportedVersion Variation = "Unsupported : given version request is not supported by the executable or system!" UnsupportedInLinux Variation = "Unsupported : given request is not supported in Linux!" UnsupportedInUnix Variation = "Unsupported : given request is not supported in any of Unix (including Linux, macOs, CentOS etc) operating versions!" UnsupportedInWindows Variation = "Unsupported : given request is not supported in any of Windows operating system versions!" FailedToExecute Variation = "Failed : request failed to execute!" FailedToParse Variation = "Failed : request failed to parse!" FailedToConvert Variation = "Failed : request failed to convert!" CannotRemoveIndexesFromEmptyCollection Variation = "Invalid operation: cannot remove indexes (either indexes are nil) or cannot remove indexes from the empty collection." CannotBeNegativeIndex Variation = "Invalid operation / index: index cannot be negative, operations canceled." CannotBeNegativeMessage Variation = "Values or value cannot be negative value." CannotBeNilOrEmptyMessage Variation = "Values or value cannot be nil or null or empty." CannotBeNilMessage Variation = "Values or value cannot be nil or null." ShouldBeNilMessage Variation = "Values or value should be nil or null." ShouldBeLessThanMessage Variation = "Values or value should be less than the reference." ShouldBeGreaterThanMessage Variation = "Values or value should be greater than the reference." ShouldBeLessThanEqualMessage Variation = "Values or value should be less or equal to the reference." ShouldBeEqualToMessage Variation = "Values or value should be equal to the reference." LengthShouldBeEqualToMessage Variation = "Values' or value's length should be equal to the reference." EmptyStatusMessage Variation = "Empty status found." NullResultMessage Variation = "Null or null or nil pointer, which is unexpected." EmptyArrayMessage Variation = "Empty array, which is unexpected." EmptyItemsMessage Variation = "Empty items, which is unexpected." FileErrorMessage Variation = "File error, which is unexpected." UnexpectedValueErrorMessage Variation = "Unexpected value error, which is unexpected." UnexpectedTypeErrorMessage Variation = "Unexpected type error, which is unexpected." IntegerOutOfRangeMessage Variation = "Integer out of range. Range, which is unexpected." FloatOutOfRangeMessage Variation = "Float out of range. Range, which is unexpected." StringOutOfRangeMessage Variation = "ToFileModeString out of range. Range, which is unexpected." ShouldBeGreaterThanEqualMessage Variation = "Values or value should be greater or equal to the reference." UnixIgnoreMessage Variation = "Windows tests ignored in Unix." WindowsIgnoreMessage Variation = "Unix tests ignored in Windows." ComparatorShouldBeWithinRanghe Variation = "Comparator should be within the range." SearchInputEmpty Variation = "Search Input is either null or empty." SearchInputOrSearchTermEmpty Variation = "Search Input or search term either null or empty." EmptyResultCannotMakeJson Variation = "Empty result, cannot make json out of it." MarshallingFailed Variation = "Failed to marshal / parse / serialize." UnMarshallingFailed Variation = "Failed to unmarshal / parse / deserialize. Failed to convert to object from serialized data source." ParsingFailed Variation = "Failed to parse." )
func GetSetVariant ¶ added in v0.0.9
func (Variation) ErrorNoRefs ¶ added in v0.3.6
func (Variation) HandleUsingPanic ¶ added in v0.0.4
Click to show internal directories.
Click to hide internal directories.