Chapter 26. Exception Tactics

    FAQ 26.01 What belongs in a try block?

    FAQ 26.02 When should a function catch an exception?

    FAQ 26.03 Should a catch block fully recover from an error?

    FAQ 26.04 How should a constructor handle a failure?

    FAQ 26.05 What are zombie objects (and why should they be avoided)?

    FAQ 26.06 What should an object do if one of its member objects could throw an exception during its constructor?

    FAQ 26.07 Should destructors throw exceptions when they fail?

    FAQ 26.08 Should destructors call routines that may throw exceptions?

    FAQ 26.09 Should resource deallocation primitives signal failure by throwing an exception?

    FAQ 26.10 What should the terminate() function do?

    FAQ 26.11 What should the unexpected() function do?

    FAQ 26.12 Under what circumstances can an overridden virtual member function throw exceptions other than those listed by the specification of the member function in the base class?

    FAQ 26.13 How might the exception-handling mechanism cause a program to silently crash?



C++ FAQs
C Programming FAQs: Frequently Asked Questions
ISBN: 0201845199
EAN: 2147483647
Year: 2005
Pages: 566
Authors: Steve Summit

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net