Commit e5ea61d1 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook GitHub Bot

mod all folly::try_and_catch<std::exception>

Summary: Mod all such cases not to pass any exception type list since such cases presumably want to catch all exceptions.

Reviewed By: ericniebler

Differential Revision: D26712856

fbshipit-source-id: 1b5de869da5701a6bec85770f11c88195d7e62d8
parent 70d84dd8
......@@ -24,7 +24,7 @@ using namespace folly::exception_tracer;
}
TEST(SmartExceptionTracer, ExceptionPtr) {
auto ew = folly::try_and_catch<std::exception>(testThrowException);
auto ew = folly::try_and_catch(testThrowException);
auto info = getTrace(ew.to_exception_ptr());
std::ostringstream ss;
......@@ -33,7 +33,7 @@ TEST(SmartExceptionTracer, ExceptionPtr) {
}
TEST(SmartExceptionTracer, ExceptionWrapper) {
auto ew = folly::try_and_catch<std::exception>(testThrowException);
auto ew = folly::try_and_catch(testThrowException);
auto info = getTrace(ew);
std::ostringstream ss;
......
......@@ -65,7 +65,7 @@ class Promise {
void setWith(F&& func);
/** Fulfill the Promise with an exception_wrapper, e.g.
auto ew = folly::try_and_catch<std::exception>([]{ ... });
auto ew = folly::try_and_catch([]{ ... });
if (ew) {
p.setException(std::move(ew));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment