mxlib
c++ tools for analyzing astronomical data and other tasks by Jared R. Males. [git repo]
Loading...
Searching...
No Matches
exception_test.cpp File Reference

Tests mxlib exception construction, inspection, and nested-exception reporting. More...

Tests mxlib exception construction, inspection, and nested-exception reporting.

Definition in file exception_test.cpp.

#include "../../catch2/catch.hpp"
#include "../../../include/error/exception.hpp"
#include <sstream>
#include <stdexcept>
#include <string>
#include <vector>

Go to the source code of this file.

Functions

 unitTest::error_exception_test::TEST_CASE ("exception preserves error context", "[error::exception]")
 Verifies all mx::exception constructors and accessors used by hciReduce error paths.
 unitTest::error_exception_test::TEST_CASE ("unwind_exceptions extracts nested messages", "[error::exception]")
 Verifies recursive extraction of standard and non-standard nested exceptions.
 unitTest::error_exception_test::TEST_CASE ("print_exceptions formats nested messages", "[error::exception]")
 Verifies the ladder format produced by mx::print_exceptions.