Public Member Functions | Private Attributes | List of all members
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]

Public Member Functions

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

Private Attributes

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

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

◆ FactoryException() [1/2]

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() [2/2]

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, num_util::type(), and FactoryException::~FactoryException().

◆ ~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 32 of file FactoryException.cxx.

References FactoryException::what().

Referenced by FactoryException::FactoryException().

Member Function Documentation

◆ what()

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(), and FactoryException::~FactoryException().

Member Data Documentation

◆ m_type

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