Standard C++ Library Reference ISO/IEC (VERSION3)
length_error
class length_error : public logic_error {
public:
length_error(const string& message);
};
The class serves as the base class for all exceptions thrown to report an attempt to generate an
object too long to be specified. The value returned by what() is a copy of
message.data().
logic_error
class logic_error : public exception {
public:
logic_error(const string& message);
};
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 a copy of message.data().
out_of_range
class out_of_range : public logic_error {
public:
out_of_range(const string& message);
};
The class serves as the base class for all exceptions thrown to report an argument that is out of
its valid range. The value returned by what() is a copy of message.data().
overflow_error
class overflow_error : public runtime_error {
public:
overflow_error(const string& message);
};
The class serves as the base class for all exceptions thrown to report an arithmetic overflow.
The value returned by what() is a copy of message.data().