From d5837dca4b4481219a79ca25efce8647d65f6cd2 Mon Sep 17 00:00:00 2001 From: Yedidya Feldblum Date: Thu, 27 Apr 2017 01:18:43 -0700 Subject: [PATCH] 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 --- eden/fs/testharness/test/FakeBackingStoreTest.cpp | 2 +- eden/fs/utils/Bug.cpp | 2 +- eden/fs/utils/test/BugTest.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/eden/fs/testharness/test/FakeBackingStoreTest.cpp b/eden/fs/testharness/test/FakeBackingStoreTest.cpp index cf1e025d51..8d9f48f482 100644 --- a/eden/fs/testharness/test/FakeBackingStoreTest.cpp +++ b/eden/fs/testharness/test/FakeBackingStoreTest.cpp @@ -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() diff --git a/eden/fs/utils/Bug.cpp b/eden/fs/utils/Bug.cpp index 084b6388f8..023930bc3e 100644 --- a/eden/fs/utils/Bug.cpp +++ b/eden/fs/utils/Bug.cpp @@ -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(); } } diff --git a/eden/fs/utils/test/BugTest.cpp b/eden/fs/utils/test/BugTest.cpp index b788e22e4c..9a90a70f4e 100644 --- a/eden/fs/utils/test/BugTest.cpp +++ b/eden/fs/utils/test/BugTest.cpp @@ -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"); }