15     .
add<
int>(
"some-value", 24)
 
   16     .add<double>(
"pi", 3.141592654)
 
   17     .
add<std::string>(
"another-string", 
"test");
 
   23   } 
catch (std::exception) {
 
   38   const int requiredPasses = 3;
 
   41   cout << 
"Single exception test.\n" << endl;
 
   44   } 
catch (
const exception& e) {
 
   49   cout << 
"\n\n\nRethrow exception test. Output should be same as above.\n" << endl;
 
   52   } 
catch (
const exception& e) {
 
   57   cout << 
"\n\n\nNested exception test. Should return two exceptions.\n" << endl;
 
   60   } 
catch (
const exception& e) {
 
   65   return (passes == requiredPasses) ? 0 : 1;
 
The ioda exception class.
 
Exception & add(const std::string &key, const T value)
Add a key-value pair to the error message.
 
IODA_DL void unwind_exception_stack(const std::exception &e, std::ostream &out=std::cerr, int level=0)
Convenience function for unwinding an exception stack.
 
void throws_exception_trivial_rethrow()
 
void throws_exception_nesting()
 
void throws_exception_inner()