34 #include <gtest/gtest.h> 38 TEST(Exceptions, direct_code_access)
61 TEST(Exceptions, indirect_code_access)
89 e = std::current_exception();
96 std::rethrow_exception(e);
105 FAIL() <<
"PlannerException caught instead of specific exception";
109 TEST(Exceptions, weird_exception)
123 e = std::current_exception();
129 int main(
int argc,
char **argv)
131 testing::InitGoogleTest(&argc, argv);
132 return RUN_ALL_TESTS();
Parent type of all exceptions defined within.
std::exception_ptr NavCore2ExceptionPtr
TFSIMD_FORCE_INLINE const tfScalar & x() const
int main(int argc, char **argv)
Exception thrown when the global planner has spent too long looking for a path.
int getResultCode() const
TEST(Exceptions, direct_code_access)
int getResultCode(const NavCore2ExceptionPtr &e_ptr)
Handy function for getting the result code.