srcerrors

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: MPL-2.0 Imports: 10 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 PubSubAttrInvalidTag added in v1.9.3

func PubSubAttrInvalidTag(fileset *token.FileSet, node ast.Node, fieldName string) error

func PubSubNewTopicInvalidArgCount added in v1.9.3

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

func PubSubOrderingKeyMustBeExported added in v1.9.3

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

func PubSubOrderingKeyNotStringLiteral added in v1.9.3

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

func PubSubPublishInvalidLocation added in v1.9.3

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

func PubSubSubscriptionArguments added in v1.9.3

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

func PubSubSubscriptionConfigNotConstant added in v1.9.3

func PubSubSubscriptionConfigNotConstant(fileset *token.FileSet, fieldName string, node ast.Node) error

func PubSubSubscriptionHandlerNotInService added in v1.9.3

func PubSubSubscriptionHandlerNotInService(fileset *token.FileSet, funcRef ast.Node, funcDecl ast.Node) error

func PubSubSubscriptionInvalidField added in v1.9.3

func PubSubSubscriptionInvalidField(fileset *token.FileSet, fieldName string, requirement string, node ast.Node, was string) error

func PubSubSubscriptionNameNotUnique added in v1.9.3

func PubSubSubscriptionNameNotUnique(fileset *token.FileSet, firstDefinition ast.Node, secondDefinition ast.Node) error

func PubSubSubscriptionRequiresHandler added in v1.9.3

func PubSubSubscriptionRequiresHandler(fileset *token.FileSet, cfgNode ast.Node) error

func PubSubSubscriptionTopicNotResource added in v1.9.3

func PubSubSubscriptionTopicNotResource(fileset *token.FileSet, node ast.Expr, got string) error

func PubSubTopicConfigInvalidField added in v1.9.3

func PubSubTopicConfigInvalidField(fileset *token.FileSet, fieldName string, exampleValue string, node ast.Node) error

func PubSubTopicConfigMissingField added in v1.9.3

func PubSubTopicConfigMissingField(fileset *token.FileSet, fieldName string, node ast.Node) error

func PubSubTopicConfigNotConstant added in v1.9.3

func PubSubTopicConfigNotConstant(fileset *token.FileSet, fieldName string, node ast.Node) error

func PubSubTopicNameNotUnique added in v1.9.3

func PubSubTopicNameNotUnique(fileset *token.FileSet, firstDefinition ast.Node, secondDefinition ast.Node) error

func ResourceNameNotKebabCase added in v1.9.3

func ResourceNameNotKebabCase(fileset *token.FileSet, node ast.Node, resourceType string, paramName string, name string) error

func ResourceNameNotStringLiteral added in v1.9.3

func ResourceNameNotStringLiteral(fileset *token.FileSet, node ast.Node, resourceType string, paramName string) error

func ResourceNameWrongLength added in v1.9.3

func ResourceNameWrongLength(fileset *token.FileSet, node ast.Node, resourceType string, paramName string, name string) error

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