User Tools

Site Tools


cpp:exception

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
cpp:exception [2018/05/21 06:30] – [Κληρονομικότητα εξαιρέσεων] gthanoscpp:exception [2018/05/21 07:00] – [Ένα 2ο παράδειγμα] gthanos
Line 552: Line 552:
       cerr << "std::exception occured!\n";       cerr << "std::exception occured!\n";
       in.close();       in.close();
-      throw ex;       // rethrows the same exception object+      throw;       // rethrows the same exception object
     }     }
 </code> </code>
cpp/exception.txt · Last modified: 2023/05/15 14:01 by gthanos