srcerrors

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CUEEvaluationFailed

func CUEEvaluationFailed(err error, pathPrefix string) error

func ConfigLoadNoArguments

func ConfigLoadNoArguments(fileset *token.FileSet, node *ast.CallExpr) error

func ConfigMustBeTopLevelPackage

func ConfigMustBeTopLevelPackage(fileset *token.FileSet, node ast.Node) error

func ConfigOnlyLoadedFromService

func ConfigOnlyLoadedFromService(fileset *token.FileSet, node ast.Node) error

func ConfigOnlyReferencedSameService

func ConfigOnlyReferencedSameService(fileset *token.FileSet, reference ast.Node, defined ast.Node) error

func ConfigTypeHasUnexportFields

func ConfigTypeHasUnexportFields(fileset *token.FileSet, loadCall ast.Node, field *ast.Field) error

func ConfigValueTypeNotSet

func ConfigValueTypeNotSet(fileset *token.FileSet, node ast.Node) error

func ConfigWrapperNested

func ConfigWrapperNested(fileset *token.FileSet, node ast.Node, funcCall *ast.CallExpr) error

func DatabaseNotFound

func DatabaseNotFound(fileset *token.FileSet, node ast.Node, dbName string) error

func GenericGoCompilerError

func GenericGoCompilerError(fileName string, lineNumber int, column int, error string) error

GenericGoCompilerError reports an error was that was reported from the Go compiler. It should not be returned by any errors caused by Encore's own compiler as they should have specific errors listed below.

func GenericGoParserError

func GenericGoParserError(err *scanner.Error) *errinsrc.ErrInSrc

GenericGoParserError reports an error was that was reported from the Go parser. It should not be returned by any errors caused by Encore's own parser as they should have specific errors listed below

func UnableToAddOrphanedCUEFiles

func UnableToAddOrphanedCUEFiles(err error, pathPrefix string) error

func UnableToLoadCUEInstances

func UnableToLoadCUEInstances(err error, pathPrefix string) error

func UnhandledPanic

func UnhandledPanic(recovered any) error

UnhandledPanic is an error we use to wrap a panic that was not handled It should ideally never be seen by users, but if it is, it means we have a bug within Encore which needs fixing.

func UnknownConfigWrapperType

func UnknownConfigWrapperType(fileset *token.FileSet, node ast.Node, ident *ast.Ident) error

func UnknownErrorCompilingConfig

func UnknownErrorCompilingConfig(fileset *token.FileSet, node ast.Node, err error) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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