Boost logo

Boost Users :

Subject: [Boost-users] [exception, system] using boost::system::error_code with boost::exception
From: Marco Craveiro (marco.craveiro_at_[hidden])
Date: 2012-12-10 06:37:55


Hi boost users,

I'm a very happy user of both error_code and exception, but now I
found a new use case which is to combine them. So I'm looking for an
example of how to add an error_code into an exception and get it all
nicely formatted with diagnostic_information. I can see how to use
error_info [1] but not error_code. Any pointers would be appreciated.

Cheers

Marco

-- 
So young, and already so unknown -- Pauli
blog: http://mcraveiro.blogspot.com
[1] http://www.boost.org/doc/libs/1_52_0/libs/exception/doc/tutorial_transporting_data.html

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net