   Exception are run time unusual condition
    that a program may encounter while
    executing..

   This unusual condition includes condition
    such as “division by zero”,” access to an
    array outside of its bound”, or “running out
    of memory or disk space”.
   C++ provides built-in language features to
    detect and handle exception which are
    basically run time errors.

   Exception handling provides a type safe,
    integrated approach, for coping with the
    unusual predictable problems that arise
    while executing a program.
   We know that it is a very rare that a program
    works correctly first time.
   It might have bugs. The two most common
    types of bugs are
         logic errors and
       syntactic errors.
 We often come across Some problems other
  than logic or syntax error. They are known as
  “exception”.
   The logic errors occur due to poor
    understanding of the problem and
    solution procedure.
    The syntax Errors Aries due to poor
    understanding of the language itself.

   We can detect these errors using
    debugging and testing procedures.
    Exception handling mechanism is needed
     because of inappropriateness of all the
     traditional solutions while working with objects
     and in distributed environment.
    The following text stresses on the needs of
     exception handling:
3.   Dividing the error handling
4.   Unconditional termination & programmer
     preferred termination
5.   Separating error reporting and error handling
6.   The object destroy problem.
Thank you

Exception handling in c++ by manoj vasava

  • 3.
    Exception are run time unusual condition that a program may encounter while executing..  This unusual condition includes condition such as “division by zero”,” access to an array outside of its bound”, or “running out of memory or disk space”.
  • 4.
    C++ provides built-in language features to detect and handle exception which are basically run time errors.  Exception handling provides a type safe, integrated approach, for coping with the unusual predictable problems that arise while executing a program.
  • 5.
    We know that it is a very rare that a program works correctly first time.  It might have bugs. The two most common types of bugs are  logic errors and  syntactic errors.  We often come across Some problems other than logic or syntax error. They are known as “exception”.
  • 6.
    The logic errors occur due to poor understanding of the problem and solution procedure. The syntax Errors Aries due to poor understanding of the language itself.  We can detect these errors using debugging and testing procedures.
  • 7.
    Exception handling mechanism is needed because of inappropriateness of all the traditional solutions while working with objects and in distributed environment.  The following text stresses on the needs of exception handling: 3. Dividing the error handling 4. Unconditional termination & programmer preferred termination 5. Separating error reporting and error handling 6. The object destroy problem.
  • 8.