logic_error

class logic_error : public exception {
public:
    logic_error(const string& what_arg);
    };

The class serves as the base class for all exceptions thrown to report errors presumably detectable before the program executes, such as violations of logical preconditions. The value returned by what() is what_arg.data().