Allow for folly::exception_wrapper in ClientReceiveState
authorMarc Celani <marccelani@fb.com>
Wed, 7 May 2014 02:05:02 +0000 (19:05 -0700)
committerDave Watson <davejwatson@fb.com>
Tue, 20 May 2014 19:53:58 +0000 (12:53 -0700)
commit2833ce1b88dca29d2b2a172f31cde28aaa14a0b8
treee2638cdefe51ef566b4acdd9e08666f1dd30c608
parentbe60435ff726fa2528e2857d9003e09e53596d86
Allow for folly::exception_wrapper in ClientReceiveState

Summary:
This diff allows us to use folly::exception_wrapper in ClientReceiveState. Existing use cases are still supported (crs.exception() still returns an exception_ptr no matter what), but we can now choose to set an exception without throwing first.

On the folly side, add some new functions for making an exception_ptr from an exception_wrapper.

Test Plan: Reran unit tests

Reviewed By: davejwatson@fb.com

FB internal diff: D1307027

@override-unit-failures
folly/ExceptionWrapper.h