CodeMod: Use the ExceptionWrapper::with_exception variant that deduces exception...
authorYedidya Feldblum <yfeldblum@fb.com>
Tue, 1 Dec 2015 06:54:20 +0000 (22:54 -0800)
committerfacebook-github-bot-0 <folly-bot@fb.com>
Tue, 1 Dec 2015 07:20:20 +0000 (23:20 -0800)
commit15e17fa26d26cc486827824c9d945e1344622732
treeab79eeb3894352de3d85ffb413a46e56959c21e5
parent8d56fe688b6ca70a28dfcb733f7ac1b8fcd26eb4
CodeMod: Use the ExceptionWrapper::with_exception variant that deduces exception types

Summary: CodeMod: Use the `ExceptionWrapper::with_exception` variant that deduces exception types.

Since we must specify the exception type in the lambda arg, and there is a variant of `ExceptionWrapper::with_exception` that deduces the type of the exception from the type of the lambda arg, we don't need to specify the exception type again as a template parameter anymore.

Reviewed By: meyering

Differential Revision: D2694895

fb-gh-sync-id: 505469f9008973a315e836f356e5db97df4ec921
folly/ExceptionWrapper.h
folly/futures/Try.h
folly/test/ExceptionWrapperTest.cpp