Rename exception_wrapper::getExceptionPtr to to_exception_ptr
authorYedidya Feldblum <yfeldblum@fb.com>
Tue, 10 Jan 2017 04:30:42 +0000 (20:30 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 10 Jan 2017 04:33:15 +0000 (20:33 -0800)
commitcd058f18c0331da9d2a20e5cc4c7d256af490508
tree517dd37f80030fdaa8532f79412132ae6c69b368
parent232f650cce09c371810d8b1d9fd94143896eceac
Rename exception_wrapper::getExceptionPtr to to_exception_ptr

Summary:
[Folly] Rename `exception_wrapper::getExceptionPtr` to `to_exception_ptr`.

Make it clear that this will sometimes be an expensive operation. Using the word `to` evokes the possibility of an expensive conversion, while using the word `get` implies cheap access.

Reviewed By: djwatson

Differential Revision: D4391621

fbshipit-source-id: 33ca051d9be5a6050ba9f30b20faee35b7e58afb
folly/ExceptionWrapper.h
folly/test/ExceptionWrapperTest.cpp