This topic describes only module-specific error codes. For details about universal error codes, see Universal Error Codes.
Error Message
Invalid key for @Env
Description
This error code is reported when there is an invalid key for @Env.
Possible Causes
A key not supported by @Env is used. @Env accepts only the predefined SystemProperties and SystemEnvKey<T> type parameters. Passing a key outside the supported range triggers this error. For details, see Supported Parameters.
Solution
Ensure that the type of the parameter supported by @Env is SystemProperties | SystemEnvKey<T>. For details, see @Env: Environment Variable.