Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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 32 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::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 17 of file FactoryException.cxx.

References m_type.

FactoryException::FactoryException const std::string type  ) 
 

The constructor.

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

Definition at line 23 of file FactoryException.cxx.

References m_type.

FactoryException::~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 29 of file FactoryException.cxx.


Member Function Documentation

char const * FactoryException::what  )  const throw ()
 

The error message that can be retreived.

Definition at line 35 of file FactoryException.cxx.

References m_type.

Referenced by DataRepController::createDataRep().


Member Data Documentation

std::string FactoryException::m_type [private]
 

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

Definition at line 37 of file FactoryException.h.

Referenced by FactoryException(), and what().


The documentation for this class was generated from the following files:
Generated for HippoDraw-1.14.8.5 by doxygen 1.4.3