Skip to content
bbminfo – Learn from Scratch
Subjects Code examples Library reference
Computer Programming Python Java C++ C Go PHP Kotlin Ruby R Scala Groovy

Tutorial menu

Subjects

Computer Programming MathsPlanned ChemistryPlanned

Lesson contents

Programming resources

All languages Code examples Library reference

Programming languages

Python Java C++ C Go PHP Kotlin Ruby R Scala Groovy
Tutorials/Computer Programming/C++/Library/Errors and exceptions

C++ errors and exceptions

Handle invalid entries, missing records, and interrupted work. Follow each failure from the input that triggers it to a response the user can act on.

std::filesystem::existsChecked integer divisionistream::read and gcount

Browse by topic

  • Input and validation4
  • State and collections2
  • Files and streams2
  • Jobs and runtime1

Input and validation

  • std::bad_variant_accessCheck the type of an imported fare
  • std::from_chars and std::errcReject a mistyped order quantity
  • std::optional::value_orPrint a label when the phone number is missing
  • std::regex_errorValidate a saved product search

State and collections

  • Checked integer divisionSplit an equipment fee across a class
  • std::out_of_rangeFind a seat after the coach changes

Files and streams

  • istream::read and gcountRead a stock count from a short record
  • std::filesystem::existsOpen the first receipt of the day

Jobs and runtime

  • std::future_status::timeoutLimit the wait for a shipping quote

All C++ library sections

C++ tutorials

Environment setup› Library reference› Data structures› Code examples›
Advertisements
bbminfo – Learn from Scratch
© 2026 bbminfoArtwork creditsPrivacy policy