package
1.40.0
Repository: https://github.com/encoredev/encore.git
Documentation: pkg.go.dev

# Functions

AlwaysIncludeStack will setup a Template so it always includes a stack trace even in a production build of Encore.
AsError allows you to set a SrcLocation's error text Pass this option in when you give the error [Template] a src location.
AsHelp allows you to set a SrcLocation's text and mark it as a helpful hint Pass this option in when you give the error [Template] a src location.
AsWarning allows you to set a SrcLocation's text and mark it as a warning Pass this option in when you give the error [Template] a src location.
AtOptionalNode returns an error at the given node if it is present.
MarkAsInternalError will setup a template so it is reported as an internal error.
PrependDetails will setup a template so it prepends the given details to the range default.
Range creates a new error code range for a given module.
WithDetails will setup a template so it uses a different details to the range default.
WithRangeSize sets the size of the range.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

SrcLocation tells us where in the code base caused the error, warning or is a hint to the end user.
Template represents a template for a new error.
TemplateRange is a helper for creating a range of error codes for a given module and generating templates for those errors.

# Type aliases

LocationKind tells us what language and position markers we're using to identify the source.
No description provided by the author
LocationType represents if the locaton is the source of the error, a warning or a helpful hint.
No description provided by the author
TemplateOption can be passed into the [Range] when creating a new Template.