00001 /* -*- mode: c++ -*- */ 00002 00014 #include "FactoryException.h" 00015 00016 FactoryException:: 00017 FactoryException ( const FactoryException & e ) 00018 { 00019 m_type = e.m_type; 00020 } 00021 00022 FactoryException:: 00023 FactoryException ( const std::string & type ) 00024 { 00025 m_type = type; 00026 } 00027 00028 FactoryException:: 00029 ~FactoryException ( ) throw () 00030 { 00031 } 00032 00033 char const * 00034 FactoryException:: 00035 what () const throw () 00036 { 00037 std::string retval ( "No such type: `" ); 00038 retval += m_type; 00039 retval += "' could be found in factory"; 00040 00041 return retval.c_str(); 00042 }