Throw exception and stop simulation if a parameter is missing in JSON file
Description:
When the simulation attempts to access a parameter defined in the parameter file (JSON) but that parameter does not exist, the system must immediately throw a clear exception and stop the simulation run. The check cannot be performed at load time since the full set of required parameters is only known dynamically during the execution of the simulation.
Acceptance Criteria:
- When a parameter access occurs, the system verifies that the parameter exists in the loaded JSON.
- If the parameter does not exist, an exception is thrown with a descriptive message (e.g., "Missing parameter: <param_name>").
- The simulation halts immediately upon the exception.
- The error is logged to both the console and the simulation log file (if applicable).