Use exception_wrapper::from_exception_ptr in Try and Promise
authorYedidya Feldblum <yfeldblum@fb.com>
Tue, 22 Aug 2017 04:10:34 +0000 (21:10 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 22 Aug 2017 04:20:23 +0000 (21:20 -0700)
commit1eccb2e616d848a21699bd11b04622d0ef7b07c3
treeba11406bbb43477cf177de4c4423fe653fdae14b
parent2ca5653ce3e8bc8b4af80651b26288326e898969
Use exception_wrapper::from_exception_ptr in Try and Promise

Summary:
[Folly] Use `exception_wrapper::from_exception_ptr` in `Try` and `Promise`.

It does just what we need; DRY.

Reviewed By: andrewjcg

Differential Revision: D5674663

fbshipit-source-id: 73e46df62c06736c4eaf013d05dfea819cbec515
folly/Try.h
folly/futures/Promise-inl.h