Urbi SDK Remote for C++  2.7.5
exit.cc
Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2009-2010, Gostai S.A.S.
00003  *
00004  * This software is provided "as is" without warranty of any kind,
00005  * either expressed or implied, including but not limited to the
00006  * implied warranties of fitness for a particular purpose.
00007  *
00008  * See the LICENSE file for more information.
00009  */
00010 
00011 #include <urbi/exit.hh>
00012 
00013 namespace urbi
00014 {
00015   Exit::Exit(int error, const std::string& message)
00016       : error_(error)
00017       , msg_(message)
00018   {}
00019 
00020   Exit::~Exit() throw ()
00021   {}
00022 
00023   const char* Exit::what() const throw ()
00024   {
00025     return msg_.c_str();
00026   }
00027 
00028   int Exit::error_get() const
00029   {
00030     return error_;
00031   }
00032 }