[odb-users] boost::exception

黄川 buptstehc at gmail.com
Thu Jan 2 09:18:08 EST 2014


Hi,All! I have a client to do insert operation frequently. when i cut off
the connection between the client and db, my program throws
'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::system::system_error>
>' which i can't catch. this is my code:
  odb::transaction t (db_->begin()); //1
  db_->persist(m); //2
  t.commit();  //3

and the exception throws at line 1. i have tried catch 'boost::system::
system_error', but fails. please help!


More information about the odb-users mailing list