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 }
e
Array< double, 1, 3 > e(1./3., 0.5, 2.)
GeographicLib
Namespace for GeographicLib.
Definition: JacobiConformal.hpp:15
GeographicLib::GeographicErr
Exception handling for GeographicLib.
Definition: Constants.hpp:389
Constants.hpp
Header for GeographicLib::Constants class.
std
Definition: BFloat16.h:88
main
int main()
Definition: example-GeographicErr.cpp:9


gtsam
Author(s):
autogenerated on Sat Nov 16 2024 04:02:16