. 15. ________________________________________401

catch (const char* error) {     }   //
//
// 
}

,  new       new,   
   .  C++,   -
 new,       xalloc  bad_alloc. 
  new,       .
      ,   
set_new_handler(0).

.15.1.  

  throw    :

throw 
throw

 throw      .  -
  catch,   ,   -
   (try-),    . A throw 
    catch   (rethrow) 
.  throw   ,   ,  
        .

   throw      ,
   ,        -
.   ,    
 .    .

  throw_it.cpp

void foo()


\

int i ;

//,   

i = -15;

throw i ;

int main()
{

try {
foo () ;

}
catch(int n)

{ cerr  " \"  n  endl; }