Move Thrower into exception_wrapper
authorYedidya Feldblum <yfeldblum@fb.com>
Thu, 22 Dec 2016 20:13:29 +0000 (12:13 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 22 Dec 2016 20:18:00 +0000 (12:18 -0800)
commit6e0964d9e0d6fda080e255720ed3e6829ecc0ace
treeaba498b957769b31427276b02da4cbefe4bb0068
parentc60d131b3e5942b31caa8b4b13c7f9bfa61b986a
Move Thrower into exception_wrapper

Summary:
[Folly] Move `Thrower` into `exception_wrapper`.

It is only used by `exception_wrapper`, so it might as well be a member type.

Also, make it private. That means we need to tweak `try_and_catch`.

Since we are tweaking `try_and_catch`, tweak all similar cases.

Reviewed By: luciang

Differential Revision: D4361815

fbshipit-source-id: c5025894465a2c7760bd79dbbd272079fd34dd79
folly/ExceptionWrapper.cpp
folly/ExceptionWrapper.h
folly/Makefile.am
folly/detail/ExceptionWrapper.h [deleted file]