SlideShare a Scribd company logo
Exception handling in c++ by manoj vasava
Exception handling in c++ by manoj vasava
   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

More Related Content

What's hot (20)

PPTX
What is Exception Handling?
Syed Bahadur Shah
 
PPSX
Exception Handling
Reddhi Basu
 
PPT
Exception handling and templates
farhan amjad
 
PPT
Handling Exceptions In C & C++[Part A]
ppd1961
 
PPTX
Exception Handling in C++
Deepak Tathe
 
PPT
Exception handling
pooja kumari
 
PDF
14 exception handling
jigeno
 
PPT
Exception Handling Java
ankitgarg_er
 
PDF
javaexceptions
Arjun Shanka
 
PPT
Exception handling
Iblesoft
 
PPT
Understanding Exception Handling in .Net
Mindfire Solutions
 
PPTX
Presentation1
Anul Chaudhary
 
PDF
Best Practices in Exception Handling
Lemi Orhan Ergin
 
PPT
C# Exceptions Handling
sharqiyem
 
PDF
Exception Handling in the C++ Constructor
Somenath Mukhopadhyay
 
PPTX
Exception handling in ASP .NET
baabtra.com - No. 1 supplier of quality freshers
 
PPTX
Exception handling
Ardhendu Nandi
 
PPTX
Exception handling in asp.net
Neelesh Shukla
 
PDF
Exception handling
Pranali Chaudhari
 
PPTX
Java exception handling
BHUVIJAYAVELU
 
What is Exception Handling?
Syed Bahadur Shah
 
Exception Handling
Reddhi Basu
 
Exception handling and templates
farhan amjad
 
Handling Exceptions In C & C++[Part A]
ppd1961
 
Exception Handling in C++
Deepak Tathe
 
Exception handling
pooja kumari
 
14 exception handling
jigeno
 
Exception Handling Java
ankitgarg_er
 
javaexceptions
Arjun Shanka
 
Exception handling
Iblesoft
 
Understanding Exception Handling in .Net
Mindfire Solutions
 
Presentation1
Anul Chaudhary
 
Best Practices in Exception Handling
Lemi Orhan Ergin
 
C# Exceptions Handling
sharqiyem
 
Exception Handling in the C++ Constructor
Somenath Mukhopadhyay
 
Exception handling in ASP .NET
baabtra.com - No. 1 supplier of quality freshers
 
Exception handling
Ardhendu Nandi
 
Exception handling in asp.net
Neelesh Shukla
 
Exception handling
Pranali Chaudhari
 
Java exception handling
BHUVIJAYAVELU
 

Viewers also liked (16)

PPTX
Templates in C++
Tech_MX
 
PPTX
exception handling in cpp
gourav kottawar
 
ODP
Exception Handling In Java
parag
 
PPS
Java Exception handling
kamal kotecha
 
PDF
Java exception handling ppt
JavabynataraJ
 
DOCX
C++ Template
Saket Pathak
 
PPTX
Exception handling in Java
Abhishek Pachisia
 
PPT
Handling Exceptions In C & C++ [Part B] Ver 2
ppd1961
 
PPT
Templates exception handling
sanya6900
 
PPTX
Dynamic memory allocation in c++
Tech_MX
 
PDF
file handling c++
Guddu Spy
 
PPT
Handling
Amit Vats
 
PPT
Exception handling
Prafull Johri
 
PPTX
C++ ala
Megha Patel
 
PDF
05 c++-strings
Kelly Swanson
 
PPTX
String in programming language in c or c++
Samsil Arefin
 
Templates in C++
Tech_MX
 
exception handling in cpp
gourav kottawar
 
Exception Handling In Java
parag
 
Java Exception handling
kamal kotecha
 
Java exception handling ppt
JavabynataraJ
 
C++ Template
Saket Pathak
 
Exception handling in Java
Abhishek Pachisia
 
Handling Exceptions In C & C++ [Part B] Ver 2
ppd1961
 
Templates exception handling
sanya6900
 
Dynamic memory allocation in c++
Tech_MX
 
file handling c++
Guddu Spy
 
Handling
Amit Vats
 
Exception handling
Prafull Johri
 
C++ ala
Megha Patel
 
05 c++-strings
Kelly Swanson
 
String in programming language in c or c++
Samsil Arefin
 
Ad

Similar to Exception handling in c++ by manoj vasava (20)

PPTX
Java Exception Handling and examples about it
2022002857mbit
 
PPTX
Error-Handling-and-Recovery-in-Compilers.pptx
haassi136qva
 
PPT
Unit 5 Java
arnold 7490
 
PPTX
Week 4 - 5 Debugging Code and Analyzing Logic Errors.pptx
michael572640
 
PPTX
Exception-Handling-in-Java-A-Comprehensive-Guide (1).pptx
singharyan4506
 
PPT
exception-handling-in-java.ppt
JAYESHRODGE
 
PPT
Exception Handling ppt slide presentation
madduriradha
 
PPT
exception-handling,try,catch,throw,throws,finally,errors-in-java.ppt
ArunPatrickK1
 
PPT
how to do exception-handling-in-java.ppt
soneedison007
 
PPT
exception-handling-in-java.ppt edfrgthyujki8ol9k8ij7uhygtrfdewd3r4tf5ghy67u8u...
anuraggautam9792
 
PPT
exception-handling-in-java (1).pptwsedrftgyhujiqawsedrftgyhujik
anuraggautam9792
 
PPT
exception-handling-in-java.ppt unit 2
thenmozhip8
 
PPTX
Chapter 13 exceptional handling
Praveen M Jigajinni
 
PPTX
Event handling
Mohamed Essam
 
PPT
exception-handling-in-java programming.ppt
ansariparveen06
 
PPT
UNIT 3.1 INTRODUCTON TO IDA.ppt
ManjuAppukuttan2
 
PPT
exception-handling-in-java.ppt
SanthiNivas
 
DOC
Error Handling in Compiler Design.doctyp
BhuvaneswariR27
 
DOC
Error Handling in Compiler Design.What a
BhuvaneswariR27
 
Java Exception Handling and examples about it
2022002857mbit
 
Error-Handling-and-Recovery-in-Compilers.pptx
haassi136qva
 
Unit 5 Java
arnold 7490
 
Week 4 - 5 Debugging Code and Analyzing Logic Errors.pptx
michael572640
 
Exception-Handling-in-Java-A-Comprehensive-Guide (1).pptx
singharyan4506
 
exception-handling-in-java.ppt
JAYESHRODGE
 
Exception Handling ppt slide presentation
madduriradha
 
exception-handling,try,catch,throw,throws,finally,errors-in-java.ppt
ArunPatrickK1
 
how to do exception-handling-in-java.ppt
soneedison007
 
exception-handling-in-java.ppt edfrgthyujki8ol9k8ij7uhygtrfdewd3r4tf5ghy67u8u...
anuraggautam9792
 
exception-handling-in-java (1).pptwsedrftgyhujiqawsedrftgyhujik
anuraggautam9792
 
exception-handling-in-java.ppt unit 2
thenmozhip8
 
Chapter 13 exceptional handling
Praveen M Jigajinni
 
Event handling
Mohamed Essam
 
exception-handling-in-java programming.ppt
ansariparveen06
 
UNIT 3.1 INTRODUCTON TO IDA.ppt
ManjuAppukuttan2
 
exception-handling-in-java.ppt
SanthiNivas
 
Error Handling in Compiler Design.doctyp
BhuvaneswariR27
 
Error Handling in Compiler Design.What a
BhuvaneswariR27
 
Ad

Recently uploaded (20)

PPTX
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
PPTX
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
PDF
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
PDF
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
PDF
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
PPTX
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PDF
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
PDF
LAW OF CONTRACT ( 5 YEAR LLB & UNITARY LLB)- MODULE-3 - LEARN THROUGH PICTURE
APARNA T SHAIL KUMAR
 
PDF
The Different Types of Non-Experimental Research
Thelma Villaflores
 
PDF
The-Ever-Evolving-World-of-Science (1).pdf/7TH CLASS CURIOSITY /1ST CHAPTER/B...
Sandeep Swamy
 
PDF
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
PDF
Lesson 2 - WATER,pH, BUFFERS, AND ACID-BASE.pdf
marvinnbustamante1
 
PDF
Dimensions of Societal Planning in Commonism
StefanMz
 
PPTX
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
PDF
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
PPTX
How to Handle Salesperson Commision in Odoo 18 Sales
Celine George
 
PDF
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
PPTX
SPINA BIFIDA: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
PDF
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
2025 Winter SWAYAM NPTEL & A Student.pptx
Utsav Yagnik
 
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
Reconstruct, Restore, Reimagine: New Perspectives on Stoke Newington’s Histor...
History of Stoke Newington
 
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
ARAL_Orientation_Day-2-Sessions_ARAL-Readung ARAL-Mathematics ARAL-Sciencev2.pdf
JoelVilloso1
 
LAW OF CONTRACT ( 5 YEAR LLB & UNITARY LLB)- MODULE-3 - LEARN THROUGH PICTURE
APARNA T SHAIL KUMAR
 
The Different Types of Non-Experimental Research
Thelma Villaflores
 
The-Ever-Evolving-World-of-Science (1).pdf/7TH CLASS CURIOSITY /1ST CHAPTER/B...
Sandeep Swamy
 
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
Lesson 2 - WATER,pH, BUFFERS, AND ACID-BASE.pdf
marvinnbustamante1
 
Dimensions of Societal Planning in Commonism
StefanMz
 
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
The dynastic history of the Chahmana.pdf
PrachiSontakke5
 
How to Handle Salesperson Commision in Odoo 18 Sales
Celine George
 
Exploring the Different Types of Experimental Research
Thelma Villaflores
 
SPINA BIFIDA: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 

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.