1 // Copyright (C) 2007 Trustees of Indiana University 2 3 // Authors: Douglas Gregor 4 // Andrew Lumsdaine 5 6 // Use, modification and distribution is subject to the Boost Software 7 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at 8 // http://www.boost.org/LICENSE_1_0.txt) 9 #include <boost/mpi/exception.hpp> 10 #include <boost/mpi/error_string.hpp> 11 12 namespace boost { namespace mpi { 13 exception(const char * routine,int result_code)14exception::exception(const char* routine, int result_code) 15 : routine_(routine), result_code_(result_code) 16 { 17 message.append(routine_); 18 message.append(": "); 19 message.append(error_string(result_code)); 20 } 21 ~exception()22exception::~exception() throw() { } 23 24 } } // end namespace boost::mpi 25