Commit 2c9e8145 authored by Jolene Tan's avatar Jolene Tan Committed by Facebook GitHub Bot

Change tryGetExceptionObject template class to Ex

Summary: Other template classes, as well as the docstring, use `Ex` to refer to the exception class.

Differential Revision: D32192455

fbshipit-source-id: 664db8beee0850ac3fb8e3cfcd46a28d568cb808
parent 9103d8e8
...@@ -299,13 +299,13 @@ class Try { ...@@ -299,13 +299,13 @@ class Try {
* type `From` permits `std::is_convertible<From*, Ex*>`; otherwise, * type `From` permits `std::is_convertible<From*, Ex*>`; otherwise,
* returns `nullptr`. * returns `nullptr`.
*/ */
template <class E> template <class Ex>
E* tryGetExceptionObject() { Ex* tryGetExceptionObject() {
return hasException() ? e_.get_exception<E>() : nullptr; return hasException() ? e_.get_exception<Ex>() : nullptr;
} }
template <class E> template <class Ex>
E const* tryGetExceptionObject() const { Ex const* tryGetExceptionObject() const {
return hasException() ? e_.get_exception<E>() : nullptr; return hasException() ? e_.get_exception<Ex>() : nullptr;
} }
/* /*
......
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