Documentation
¶
Overview ¶
Package errors provides internationalized error definitions and utilities.
It uses the national package for i18n support and defines common error sentences that can be translated and formatted with context.
Index ¶
Constants ¶
View Source
const ( CompileExpressionError i.Sentence = "Compile expression {{.express}} error" EvaluateExpressionError i.Sentence = "Evaluate expression error: {{.error}}" ExpectedTypeButError i.Sentence = "Type {{.expected}} is expected but got {{.actual}}" MissingTemplateError i.Sentence = "Template is missing" MissingValueError i.Sentence = "Missing required value" MissingAuthenticationToken i.Sentence = "Missing authentication token" OverwriteInternalBuiltinError i.Sentence = "Internal builtin {{.builtin}} can't be overwritten" OverwriteBuiltinError i.Sentence = "Builtin {{.builtin}} can't be overwritten" OverwriteIsForbiddenError i.Sentence = "Overwrite {{.target}} of {{.type}} is not allowed" UnexpectedTypeError i.Sentence = "Got unexpected {{.type}}" UnexpectedValueError i.Sentence = "Got unexpected {{.type}} {{.value}}" UnrecognizedError i.Sentence = "Unrecognized {{.type}} {{.value}}" UnsupportedValueError i.Sentence = "Unsupported {{.type}} {{.value}}" NotFoundError i.Sentence = "{{.type}} {{.value}} not found" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.