C++ Exception Library - length_error



Description

It is a length error exception and some components of the standard library, such as vector and string also throw exceptions of this type to signal errors resizing.

Declaration

Following is the declaration for std::length_error.

class length_error;

C++11

class length_error;

Parameters

none

Return Value

none

Exceptions

No-throw guarantee − no members throw exceptions.

Members

  • constructor − what_arg has the same content as the value returned by member what.

  • what − It is used to get string identifying exception.

exception.htm
Advertisements