Thread: std::exception and STL

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    1,579

    std::exception and STL

    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

  2. #2
    Registered User
    Join Date
    Oct 2006
    Location
    Canada
    Posts
    1,243
    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:
    All exceptions thrown by components of the C++ Standard library throw exceptions derived from this std::exception class. These are:
    hope it helps

  3. #3
    Registered User
    Join Date
    May 2006
    Posts
    1,579
    Great, nadroj!


    Good link! My question is answered.

    Quote Originally Posted by nadroj View Post
    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 helps

    regards,
    George

Popular pages Recent additions subscribe to a feed
Website Security Test