2017-06-26 23:46:34 +02:00
|
|
|
// Copyright 2016-2017, Pulumi Corporation. All rights reserved.
|
2017-01-26 00:04:47 +01:00
|
|
|
|
|
|
|
package errors
|
|
|
|
|
2017-01-26 02:58:16 +01:00
|
|
|
// Eval errors are in the [1000,2000) range.
|
|
|
|
var (
|
2017-01-26 03:38:53 +01:00
|
|
|
ErrorUnhandledException = newError(1000, "An unhandled exception terminated the program: %v")
|
2017-01-27 23:47:26 +01:00
|
|
|
ErrorUnhandledInitException = newError(1001, "An unhandled exception in %v's initializer occurred: %v")
|
|
|
|
ErrorPackageHasNoDefaultModule = newError(1002, "Package '%v' is missing a default module")
|
|
|
|
ErrorModuleHasNoEntryPoint = newError(1003, "Module '%v' is missing an entrypoint function")
|
|
|
|
ErrorFunctionArgMismatch = newError(1004, "Function expected %v arguments, but only got %v")
|
|
|
|
ErrorFunctionArgIncorrectType = newError(1005, "Function argument has an incorrect type; expected %v, got %v")
|
|
|
|
ErrorFunctionArgNotFound = newError(1006, "Function argument '%v' was not supplied")
|
|
|
|
ErrorFunctionArgUnknown = newError(1007, "Function argument '%v' was not recognized")
|
2017-01-28 01:42:32 +01:00
|
|
|
ErrorIllegalReadonlyLValue = newError(1008, "A readonly target cannot be used as an assignment target")
|
2017-01-26 00:04:47 +01:00
|
|
|
)
|