C ++ STD exception

Source: Internet
Author: User
<Stdexcept>

Defines several standard classes used for reporting exceptions. the classes form a derivation hierarchy all derived from class exception and include two general types of exceptions: logical errors and run-time errors. the logical errors are caused programmer mistakes. they derive from the base class logic_error and include:

  • Domain_error

  • Invalid_argument

  • Length_error

  • Out_of_range

The run-time errors occur because of mistakes in either the library functions or in the run-time system. They derive from the base class runtime_error and include:

  • Overflow_error

  • Range_error

  • Underflow_error

For a list of all members of this header, see <stdexcept> members.

See also

Referencethread safety in the Standard C ++ libraryother resources <stdexcept> membersheader files

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.