FactoryException.cxx
Go to the documentation of this file.
1 /* -*- mode: c++ -*- */
2 
14 #include "FactoryException.h"
15 
16 namespace hippodraw {
17 
20  : exception ()
21 {
22  m_type = e.m_type;
23 }
24 
26 FactoryException ( const std::string & type )
27 {
28  m_type = type;
29 }
30 
32 ~FactoryException ( ) throw ()
33 {
34 }
35 
36 char const *
38 what () const throw ()
39 {
40  std::string retval ( "No such type: `" );
41  retval += m_type;
42  retval += "' could be found in factory";
43 
44  return retval.c_str();
45 }
46 
47 } // namespace hippodraw
48 
char const * what() const
The error message that can be retreived.
FactoryException(const FactoryException &)
The copy constructor.
PyArray_TYPES type(numeric::array arr)
Definition: num_util.cpp:249
virtual ~FactoryException()
The destructor.
FactoryException class interface.
An exception class that is thrown when the factory fails to find the request class by its name...
std::string m_type
The type name that could not be found in the factory.

Generated for HippoDraw Class Library by doxygen