00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 #ifndef FACTORYEXCEPTIONS_HPP
00039 #define FACTORYEXCEPTIONS_HPP
00040
00041 #include <string>
00042 #include <exception>
00043 #include "rtt-config.h"
00044
00049 namespace RTT
00050 {
00055 struct RTT_EXPORT name_not_found_exception
00056 : public std::exception
00057 {
00058 name_not_found_exception( const std::string& n="name" );
00059 ~name_not_found_exception() throw();
00060 std::string name;
00061 std::string whatstr;
00062 virtual const char* what() const throw();
00063 };
00064
00069 struct RTT_EXPORT invalid_handle_exception
00070 : public std::exception
00071 {
00072 invalid_handle_exception();
00073 ~invalid_handle_exception() throw();
00074 std::string whatstr;
00075 virtual const char* what() const throw();
00076 };
00077
00082 struct RTT_EXPORT wrong_number_of_args_exception
00083 : public std::exception
00084 {
00085 int wanted;
00086 int received;
00087 std::string whatstr;
00088 wrong_number_of_args_exception( int w, int r );
00089 ~wrong_number_of_args_exception() throw();
00090 virtual const char* what() const throw();
00091 };
00092
00097 struct RTT_EXPORT wrong_types_of_args_exception
00098 : public std::exception
00099 {
00100
00101
00102 int whicharg;
00103 std::string expected_;
00104 std::string received_;
00105 std::string whatstr;
00106 wrong_types_of_args_exception( int w, const std::string& expected, const std::string& received );
00107 ~wrong_types_of_args_exception() throw();
00108 virtual const char* what() const throw();
00109 };
00110
00115 struct RTT_EXPORT no_asynchronous_operation_exception
00116 : public std::exception
00117 {
00118 std::string whatstr;
00119 no_asynchronous_operation_exception( const std::string& what );
00120 ~no_asynchronous_operation_exception() throw();
00121 virtual const char* what() const throw();
00122 };
00123
00130 struct RTT_EXPORT non_lvalue_args_exception
00131 : public std::exception
00132 {
00133
00134
00135 int whicharg;
00136 std::string received_;
00137 std::string whatstr;
00138 non_lvalue_args_exception( int w, const std::string& received );
00139 ~non_lvalue_args_exception() throw();
00140 virtual const char* what() const throw();
00141 };
00142 }
00143
00144 #endif