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/19 06:46] – [Κληρονομικότητα] gthanoscpp:exception [2018/05/19 06:50] – [Κληρονομικότητα] gthanos
Line 331: Line 331:
 </WRAP> </WRAP>
  
 +<WRAP tip 80% center round>
 +Είναι προφανές ότι η σειρά των //catch blocks// θα έπρεπε να είναι η αντίστροφη (πρώτα το //catch block// για την αναφορά τύπου //DerivedException// και στη συνέχεια το //catch block// για την αναφορά τύπου //BasedException//. Ο λόγος είναι ότι εάν παραμείνει η σειρά των //catch blocks// ως έχει το 2o catch block δεν εκτελείται ποτέ.
 +</WRAP>
 ===== Stack Unwinding ===== ===== Stack Unwinding =====
  
cpp/exception.txt · Last modified: 2023/05/15 14:01 by gthanos