What are the exception classes that are included in the standard C++ library, and what should they be used for? I know there are a few new C++11 exceptions, but I’m not sure what they are or where they are.
What are the exception classes that are included in the standard C++ library, and
Share
Source: http://en.cppreference.com/w/cpp/error/exception
In practice, most exceptions are custom exceptions derived from
logic_errorandruntime_error. Not that these are neglected, but that many exceptions are domain specific.Keep in mind that an exception should reflect what went wrong and not who threw it. (No "MyProgramException"s)