stdruntimeerrorError
The `std::runtime_error` is a standard exception class defined in the C++ Standard Library within the `<stdexcept>` header. It is part of the hierarchy of standard exceptions introduced to provide a consistent way of handling runtime errors in C++ programs. This class is derived from the base class `std::exception`, which serves as the foundation for all standard exceptions in C++.
`std::runtime_error` is used to signal errors that occur during the normal execution of a program, as opposed
When constructing a `std::runtime_error`, a descriptive error message is provided as an argument to the constructor.
The use of `std::runtime_error` promotes better error handling practices by separating error conditions from the core