Skip to main content

RuntimeError

Error thrown for errors that can only be detected during program execution.

RuntimeError represents errors that occur during runtime and cannot be predicted at compile time. These include resource exhaustion, invalid operations on runtime data, system-level failures, and other conditions that depend on the execution environment or user input. RuntimeError serves as the base class for many specific runtime exception types including EvalError and ArithmeticError.

Constructors

RuntimeError(const string message) -> RuntimeError

Constructs a RuntimeError with the specified message.

Parameters

  • message: The error message.