Rename exception_wrapper::get_object to get_exception
[folly.git] / folly / ExceptionWrapper.h
index 82dfde723ee71cf8d66e3cae3907a5d0650b2f53..6e11dd3c20ee7675b68b85a2a13245bbca4188f9 100644 (file)
@@ -464,10 +464,10 @@ class exception_wrapper final {
   //! \note This function may cause an exception to be thrown and immediately
   //!     caught internally, affecting runtime performance.
   template <typename Ex>
-  Ex* get_object() noexcept;
+  Ex* get_exception() noexcept;
   //! \overload
   template <typename Ex>
-  Ex const* get_object() const noexcept;
+  Ex const* get_exception() const noexcept;
 
   //! \return A `std::exception_ptr` that references either the exception held
   //!     by `*this`, or a copy of same.