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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment