1 //Copyright (c) 2006-2009 Emil Dotchevski and Reverge Studios, Inc.
\r
3 //Distributed under the Boost Software License, Version 1.0. (See accompanying
\r
4 //file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
\r
6 #ifndef UUID_F0EE17BE6C1211DE87FF459155D89593
\r
7 #define UUID_F0EE17BE6C1211DE87FF459155D89593
\r
9 #include "boost/exception/info.hpp"
\r
16 typedef error_info<struct errinfo_errno_,int> errinfo_errno;
\r
19 //if( c_function(....)!=0 )
\r
20 // BOOST_THROW_EXCEPTION(
\r
22 // errinfo_errno(errno) <<
\r
23 // errinfo_api_function("c_function") );
\r
26 to_string( errinfo_errno const & e )
\r
28 std::ostringstream tmp;
\r
30 tmp << v << ", \"" << strerror(v) << "\"";
\r