Urbi SDK Remote for C++  2.7.5
exit.hh
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 #ifndef URBI_EXIT_HH
00012 # define URBI_EXIT_HH
00013 
00014 # include <exception>
00015 # include <string>
00016 
00017 # include <urbi/export.hh>
00018 
00019 namespace urbi
00020 {
00021   class URBI_SDK_API Exit: public std::exception
00022   {
00023   public:
00024     Exit(int error, const std::string& message);
00025     virtual ~Exit() throw ();
00026     virtual const char* what() const throw ();
00027     int error_get() const;
00028 
00029   private:
00030     int error_;
00031     std::string msg_;
00032   };
00033 }
00034 
00035 #endif // !URBI_EXIT_HH