ADD: new track message, Entity class and Position class
This commit is contained in:
16
libs/geographiclib/examples/example-GeographicErr.cpp
Normal file
16
libs/geographiclib/examples/example-GeographicErr.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
// Example of using the GeographicLib::GeographicErr class
|
||||
|
||||
#include <iostream>
|
||||
#include <GeographicLib/Constants.hpp>
|
||||
|
||||
using namespace std;
|
||||
using namespace GeographicLib;
|
||||
|
||||
int main() {
|
||||
try {
|
||||
throw GeographicErr("Test throwing an exception");
|
||||
}
|
||||
catch (const GeographicErr& e) {
|
||||
cout << "Caught exception: " << e.what() << "\n";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user