gtsam
3rdparty
GeographicLib
examples
example-GeographicErr.cpp
Go to the documentation of this file.
1
// Example of using the GeographicLib::GeographicErr class
2
3
#include <iostream>
4
#include <
GeographicLib/Constants.hpp
>
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
}
std
Definition:
BFloat16.h:88
GeographicLib
Namespace for GeographicLib.
Definition:
JacobiConformal.hpp:15
e
Array< double, 1, 3 > e(1./3., 0.5, 2.)
GeographicLib::GeographicErr
Exception handling for GeographicLib.
Definition:
Constants.hpp:389
Constants.hpp
Header for GeographicLib::Constants class.
main
int main()
Definition:
example-GeographicErr.cpp:9
gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:34:12