FactoryException Class Reference

#include <FactoryException.h>

Inheritance diagram for FactoryException:

Inheritance graph
[legend]
Collaboration diagram for FactoryException:

Collaboration graph
[legend]
List of all members.

Detailed Description

An exception class that is thrown when the factory fails to find the request class by its name.

The class contains the error message with the failed name.

Author:
Paul F. Kunz <Paul_Kunz@slac.stanford.edu>

Definition at line 34 of file FactoryException.h.

Public Member Functions

 FactoryException (const std::string &type)
 The constructor.
 FactoryException (const FactoryException &)
 The copy constructor.
char const * what () const throw ()
 The error message that can be retreived.
virtual ~FactoryException () throw ()
 The destructor.

Private Attributes

std::string m_type
 The type name that could not be found in the factory.


Constructor & Destructor Documentation

FactoryException ( const FactoryException  ) 

The copy constructor.

Attention:
GCC 2.95.3 needs it else exception doesn't appear to be caught correctly. GCC 3.2.1 doesn't need it.

Definition at line 19 of file FactoryException.cxx.

References FactoryException::m_type.

FactoryException ( const std::string &  type  ) 

The constructor.

Takes as argument the type name that could not be found in the factory.

Definition at line 26 of file FactoryException.cxx.

References FactoryException::m_type.

~FactoryException (  )  throw () [virtual]

The destructor.

Attention:
Althought implementation does nothing GCC 3.2.1 insists that it declared like the base class.

Definition at line 32 of file FactoryException.cxx.


Member Function Documentation

char const * what (  )  const throw ()

The error message that can be retreived.

Definition at line 38 of file FactoryException.cxx.

References FactoryException::m_type.

Referenced by DataRepController::createDataRep().


Member Data Documentation

std::string m_type [private]

The type name that could not be found in the factory.

Definition at line 39 of file FactoryException.h.

Referenced by FactoryException::FactoryException(), and FactoryException::what().


The documentation for this class was generated from the following files:
Generated for HippoDraw Class Library by doxygen