How to Terminate Called After Throwing an Instance of Std::length_Error

A program may encounter a problem when the size of a string is too large. The exception std::length_error may be used to report this problem. In some cases, this exception may not be able to be caught and the program will die. To catch this exception, the program must implement a catch-clause. This is similar to the definition of a function argument.