Casing consistency for exception_wrapper::throw_exception

Summary: [Folly] Casing consistency for `exception_wrapper::throw_exception`.

Reviewed By: Orvid

Differential Revision: D4944818

fbshipit-source-id: 72056fb24ab6362e9a0319f73b5bbf8c92d658ca
This commit is contained in:
Yedidya Feldblum 2017-04-27 01:18:43 -07:00 committed by Facebook Github Bot
parent d090035fa4
commit d5837dca4b
3 changed files with 3 additions and 3 deletions

View File

@ -109,7 +109,7 @@ TEST_F(FakeBackingStoreTest, getBlob) {
EXPECT_THROW_RE(future3.get(), std::logic_error, "does not compute");
ASSERT_TRUE(future4Failed);
EXPECT_THROW_RE(
future4Error.throwException(), std::logic_error, "does not compute");
future4Error.throw_exception(), std::logic_error, "does not compute");
// Calling setReady() should make the pending futures ready, as well
// as all subsequent Futures returned by getBlob()

View File

@ -41,7 +41,7 @@ EdenBug::~EdenBug() noexcept(false) {
// Callers should only ever store EdenBug objects if they plan to call
// toException() on them.
if (throwOnDestruction_) {
toException().throwException();
toException().throw_exception();
}
}

View File

@ -31,5 +31,5 @@ TEST(EdenBug, toException) {
EdenBugDisabler noCrash;
auto bug = EDEN_BUG() << "whoops";
auto ew = bug.toException();
EXPECT_THROW_RE(ew.throwException(), std::runtime_error, "whoops");
EXPECT_THROW_RE(ew.throw_exception(), std::runtime_error, "whoops");
}