Hello everyone,
It is correct to assume that all exceptions from STL are either std::exception itself or derived class from std::exception?
thanks in advance,
George
Hello everyone,
It is correct to assume that all exceptions from STL are either std::exception itself or derived class from std::exception?
thanks in advance,
George
ive never used exceptions in C++ (only Java), but my initial guess would be yes. this is definitely a good place to use OO-design principles, and have anything that is an exception, be derived from, well, an exception.
see this link for details, but heres a quote:hope it helpsAll exceptions thrown by components of the C++ Standard library throw exceptions derived from this std::exception class. These are: