Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
boost/exception/all.hpp
✓ #include <boost/exception/all.hpp>
Using Boost.Exception with error info
#include <boost/exception/all.hpp>
#include <iostream>
#include <stdexcept>
typedef boost::error_info<struct tag_errno, int> errno_info;
struct my_error : virtual boost::exception, virtual std::exception {};
int main() {
try {
BOOST_THROW_EXCEPTION(my_error() << errno_info(42));
} catch (const boost::exception& e) {
std::cout << "Caught error with errno: " << *boost::get_error_info<errno_info>(e) << std::endl;
}
return 0;
}
Debug
Known issues
No known issues recorded.
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.