capture exception information when creating exception_wrapper
authorEric Niebler <eniebler@fb.com>
Fri, 13 Jan 2017 20:16:51 +0000 (12:16 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 13 Jan 2017 20:18:00 +0000 (12:18 -0800)
commit0e7c824d239f6668be1afb2ffd334f89ce294c80
tree7be8a5d314393364eb054b637172cb9ac96a6602
parent1e53154792a1d188cc29b7c78433913f34714912
capture exception information when creating exception_wrapper

Summary:
prefer creating an exception_wrapper with a reference to the active exception

Depends on D4410421

Reviewed By: spacedentist

Differential Revision: D4410455

fbshipit-source-id: d6b6aeb5fa72782e31d754a0b853514af5fdb8cd
folly/futures/detail/Core.h
folly/futures/test/PromiseTest.cpp
folly/futures/test/SharedPromiseTest.cpp