FactoryExceptions.hpp
Go to the documentation of this file.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 wrong_number_of_args_exception
00070 : public std::exception
00071 {
00072 int wanted;
00073 int received;
00074 std::string whatstr;
00075 wrong_number_of_args_exception( int w, int r );
00076 ~wrong_number_of_args_exception() throw();
00077 virtual const char* what() const throw();
00078 };
00079
00084 struct RTT_EXPORT wrong_types_of_args_exception
00085 : public std::exception
00086 {
00087
00088
00089 int whicharg;
00090 std::string expected_;
00091 std::string received_;
00092 std::string whatstr;
00093 wrong_types_of_args_exception( int w, const std::string& expected, const std::string& received );
00094 ~wrong_types_of_args_exception() throw();
00095 virtual const char* what() const throw();
00096 };
00097
00104 struct RTT_EXPORT non_lvalue_args_exception
00105 : public std::exception
00106 {
00107
00108
00109 int whicharg;
00110 std::string received_;
00111 std::string whatstr;
00112 non_lvalue_args_exception( int w, const std::string& received );
00113 ~non_lvalue_args_exception() throw();
00114 virtual const char* what() const throw();
00115 };
00116 }
00117
00118 #endif