FactoryException.cxx

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

Generated for HippoDraw Class Library by doxygen