Documentation
¶
Index ¶
Constants ¶
View Source
const ( // InternalError is the default error type InternalError = "InternalError" // ArgumentError is for an argument-related error ArgumentError = "ArgumentError" // NameError is for a constant-related error NameError = "NameError" // StopIteration is raised when there are no more elements in an iterator StopIteration = "StopIteration" // TypeError is for a type-related error TypeError = "TypeError" // UndefinedMethodError is for an undefined-method error UndefinedMethodError = "UndefinedMethodError" // UnsupportedMethodError is for an intentionally unsupported-method error UnsupportedMethodError = "UnsupportedMethodError" // ConstantAlreadyInitializedError means user re-declares twice ConstantAlreadyInitializedError = "ConstantAlreadyInitializedError" // HTTPError is returned when when a request fails to return a proper response HTTPError = "HTTPError" // ZeroDivisionError is for zero-division by Integer/Float/Decimal value ZeroDivisionError = "ZeroDivisionError" )
View Source
const ( WrongNumberOfArgumentFormat = "Expect %d arguments. got: %d" WrongArgumentTypeFormat = "Expect argument to be %s. got: %s" CantYieldWithoutBlockFormat = "Can't yield without a block" DividedByZero = "Divided by 0" )
Here defines different error message formats for different types of errors
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.