Thread: about exception specification

  1. #1
    Registered User
    Join Date
    May 2006

    about exception specification

    Hello everyone,

    How do you understand the comments from Bjarne about exception specification?

    (section 14.6.1 Checking Exception Specifications)

    The way to think about exception-specifications is to assume that a function will throw any exception it can. The rules for compile-time checking exception-specifications outlaw easily detected absurdities.

    thanks in advance,

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Oh no, you don't. You're asking the wrong question.

    The question is not, what do we think, but what do you not understand.

    Ask the right question.
    All the buzzt!

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Exception handling in a large project
    By EVOEx in forum C++ Programming
    Replies: 7
    Last Post: 01-25-2009, 07:33 AM
  2. exception handling
    By coletek in forum C++ Programming
    Replies: 2
    Last Post: 01-12-2009, 05:28 PM
  3. Bjarne's comments about exception specification
    By George2 in forum C++ Programming
    Replies: 4
    Last Post: 01-21-2008, 07:51 AM
  4. Signal and exception handling
    By nts in forum C++ Programming
    Replies: 23
    Last Post: 11-15-2007, 02:36 PM
  5. Problem with the exception class in MINGW
    By indigo0086 in forum C++ Programming
    Replies: 6
    Last Post: 01-20-2007, 01:12 PM