| 76 | } |
| 77 | |
| 78 | int geode_lippincott() |
| 79 | { |
| 80 | try |
| 81 | { |
| 82 | throw; |
| 83 | } |
| 84 | catch( const OpenGeodeException& exception ) |
| 85 | { |
| 86 | Logger::critical( exception.string() ); |
| 87 | std::reference_wrapper< const OpenGeodeException > current = |
| 88 | exception; |
| 89 | while( current.get().has_parent() ) |
| 90 | { |
| 91 | current = current.get().parent(); |
| 92 | Logger::critical( "From: ", current.get().string() ); |
| 93 | } |
| 94 | } |
| 95 | catch( const std::exception& exception ) |
| 96 | { |
| 97 | Logger::critical( "std::exception: ", exception.what() ); |
| 98 | } |
| 99 | catch( ... ) |
| 100 | { |
| 101 | Logger::critical( "Unknown exception" ); |
| 102 | } |
| 103 | return 1; |
| 104 | } |
| 105 | } // namespace geode |