       

           ?  . 
   ,     
 .      ,    
    . ,     
Overflow,     - ,   : 

    class Overflow { }; 

             
 (,  ): 

    throw Overflow(); 

          Overflow,   
     . -     
       catch: 

    catch (Overflow)  { 
        cout  "Overflow detected!"  endl; 
    }	

        Overflow    
 .     -  
( ). 
     ,    throw    
Overflow,    catch     
(    ,  ).  ,     
,     ,  , 
     : 

    catch (Overflow overObject) { 
       // ... 
     }

          catch   overObject.   
  catch    overObject   ,  
  ,   . 
    ,       
-,       catch.  :	

    class Overflow { 
       void Report()  { cout  "Error: overflow"  endl; } 
    };

      Overflow  - ReportO,   
  (      , 
      -).   catch  
 Report()        : 

    catch (Overflow overObject)	{ 
       overObject.Report();	//   Report            
    }                    


        

            
      .  
 ,      
  : 

    int AnyFunction() 
    { 
       if (conditionA)        //    condition* 
         throw "Big trouble!";  //    
      if (conditions)        //    conditions 
        throw Overflow();     //    Overflow 
     return 123;	//   ,   
   } 

      conditionA  (    ),  
      "Big trouble!".  
  conditionB,     Overflow, 
           
.      ,    
,   123 ,   .	


    402      III.   ANSI C++ 
