example-GeographicErr.cpp
Go to the documentation of this file.
1 // Example of using the GeographicLib::GeographicErr class
2 
3 #include <iostream>
5 
6 using namespace std;
7 using namespace GeographicLib;
8 
9 int main() {
10  try {
11  throw GeographicErr("Test throwing an exception");
12  }
13  catch (const GeographicErr& e) {
14  cout << "Caught exception: " << e.what() << "\n";
15  }
16 }
Definition: BFloat16.h:88
Namespace for GeographicLib.
Array< double, 1, 3 > e(1./3., 0.5, 2.)
Exception handling for GeographicLib.
Definition: Constants.hpp:389
Header for GeographicLib::Constants class.
int main()


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:34:12