404                                       .   

   , ,    -
    .   -
      .   

unexpected().

. 15.5. terminateO  unexpected()

   terminate () ,    -
   , ,    .  
  abort ().      
  .   set_terminate ()   -
 -  ;    . 
    except  except.h.

   unexpected () ,  -
  ,       -
.     terminate ().   -
 set_terminate (),   .

. 15.6.   

       except ion.
     logic_error ( ) 
runtime_error ( ).    :

bad_cast ( ), out_of_range ( )  bad_typeid
(  typeid),     , -
   .     
: range_error ( ), overflow_error ()
 bad_alloc (  ).

     :

virtual const char* exception::what() const throw();

      . 
-          -
    .   -
  ,      .

. 16. ,   

C++     ,      ,
 C++     .  , C++  -
   .     '.
    ,  -
.

'   C++    1998  (ISO/IEC 14882). 
C++,    ,     .
 . .