Examples
Team LiB
Previous Section Next Section

Examples

Example: Rethrowing a modified exception. Prefer to rethrow using throw;:



catch( MyException& e ) {                   // catch by reference to non-const


 e.AppendContext("Passed through here");    // modify


 throw;                                     // rethrow modified object


}



    Team LiB
    Previous Section Next Section