Thursday, December 2, 2010

Rethrowing Exceptions

The best way to rethrow an exception caught by catch(AnException &e) is 'throw;' instead of 'throw e;'

The full information of the exception will be kept, instead of keeping only the info of the derived exception class that caught the exception.

No comments:

Post a Comment