262  7.  ,    ...

try{

logic_error Logic(
throw(Logic) ;

}

" ");

catch(const exception &X)
{

cout  X.whatO  endl;

   exception   , -
,  ,      -
.       .    
    ,   what ()  . 
   ,     
logic_error.   7.3    " "
   what ()  catch-     .

7.7.1.2.  logic_error

  logic_error    exception.    ,
        
exception.  exception   what (),   -
     .   logic_error-
  ,    , -
    .      -
 logic_error   . 7.5.

logicerror	-^>	exception
^		

domainerror		invalid argument		lengtherror		outofrange

. 7.5.       

logic_error

   runtime_error     
 .      ,
    ,        . 
         -
      .

7.7.1.3.    

     , ..    -
    .      
   .     -
           . -
         