Public Member Functions | Private Attributes
FactoryException Class Reference

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

#include <FactoryException.h>

Inheritance diagram for FactoryException:
Inheritance graph
[legend]
Collaboration diagram for FactoryException:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 FactoryException (const FactoryException &)
 The copy constructor.
 FactoryException (const std::string &type)
 The 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.

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_.nosp@m.Kunz.nosp@m.@slac.nosp@m..sta.nosp@m.nford.nosp@m..edu

Definition at line 34 of file FactoryException.h.


Constructor & Destructor Documentation

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, and num_util::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