A derived class of logic_error the length_error is use to report exceptions when an object exceeds allowed sizes.
length_error(const string& what_arg);
Constructs an object of class length_error. Initializes exception::what to the what_arg argument