| 
                  Exceptions in C++
                   An Introduction  | 
            
| 
                   
                      
                     Prof. David Bernstein
                       | 
            
| Computer Science Department | 
| bernstdh@jmu.edu | 
               
            
         
            
         
         
            
         double?
        try-catch Statement
         
            
         try block)catch blocktry-catch Statement (cont.)
         
            
         try-catch Statement (cont.)
         
            
         
try-catch Statement (cont.)
         
            
         
try-catch Statement (cont.)
         
            
         
try-catch Statement (cont.)
         
            
         
         
            
         
         
            
         exception in the <exception>
              header file (under the std namespace)
              that can serve as a base class
        exception class contains a virtual member
              function what that returns a null-terminated
              char array that can be overridden/overwritten
              to return a description of the exception