Rename exception_wrapper::get_object to get_exception
[folly.git] / folly / ExceptionWrapper-inl.h
index aca35f2cb255c7ae8cc3958173b3cf54f153e9f1..287275aec9ed73ab53bfba9fffb8f80a42b34de7 100644 (file)
@@ -351,14 +351,14 @@ inline std::exception const* exception_wrapper::get_exception() const noexcept {
 }
 
 template <typename Ex>
-inline Ex* exception_wrapper::get_object() noexcept {
+inline Ex* exception_wrapper::get_exception() noexcept {
   Ex* object{nullptr};
   with_exception([&](Ex& ex) { object = &ex; });
   return object;
 }
 
 template <typename Ex>
-inline Ex const* exception_wrapper::get_object() const noexcept {
+inline Ex const* exception_wrapper::get_exception() const noexcept {
   Ex const* object{nullptr};
   with_exception([&](Ex const& ex) { object = &ex; });
   return object;