Simplify an exception handler
authorChad Parry <cparry@fb.com>
Mon, 23 Nov 2015 20:00:54 +0000 (12:00 -0800)
committerfacebook-github-bot-1 <folly-bot@fb.com>
Mon, 23 Nov 2015 20:20:29 +0000 (12:20 -0800)
commit6bafdff6699540b1e65a665b6d924a35ccafcd9c
treefec1e9887a03616bb86edaff9f8ea337f5356431
parent4b750cf3c4ec2ce6f13d3c7381194f481a31d06d
Simplify an exception handler

Summary: It looks like there is no reason to catch a `std::exception` and then `dynamic_cast` to a derived exception. We can just catch the derived exception directly.

whatcouldgowrong4

Reviewed By: yfeldblum

Differential Revision: D2677284

fb-gh-sync-id: 0149e4d4aecc96257376d410f592620205441f66
folly/ExceptionWrapper.h