Construct the error.
The key in error.
The expected type. Usually determined the type of call expected (getNumber, getString, etc).
The actual type. Usually determined by the typeof
the registered default.
The actual type. Usually determined by the typeof
the registered default.
The expected type. Usually determined the type of call expected (getNumber, getString, etc).
The key in error.
Generated using TypeDoc
This error represents the condition when a getter function of the Environment, like EnvironmentManager.getNumber, is called and the type of the default didn't match the method return value.
Example
Environment.register("TEST", "string"); Environment.getNumber("TEST"); // Throws TypeMismatchError