DataRepException Class Reference

#include <DataRepException.h>

Inheritance diagram for DataRepException:

Inheritance graph
[legend]
Collaboration diagram for DataRepException:

Collaboration graph
[legend]

List of all members.


Detailed Description

An xception class that is thrown when attempting to bind a DataRep to a NTuple with a column name that doesn't exist.

The class contains the error message with the name of the bad column label.

Todo:
Only QtDisplay uses this class, maybe it could be eliminated.
Author:
Paul F. Kunz <Paul_Kunz@slac.stanford.edu>

Definition at line 37 of file DataRepException.h.


Public Member Functions

 DataRepException (const DataRepException &)
 The copy constructor.
 DataRepException (const std::string &type)
 Constructor taking the bad binding lable type as argument.
virtual const char * what () const throw ()
 The standard method to return a string giving message about the cause of the exception.
virtual ~DataRepException () throw ()
 The virtual destructor.

Private Attributes

std::string m_type
 The binding label that could not be found in NTuple.

Constructor & Destructor Documentation

DataRepException ( const std::string &  type  ) 

Constructor taking the bad binding lable type as argument.

Definition at line 19 of file DataRepException.cxx.

References DataRepException::m_type.

DataRepException ( const DataRepException e  ) 

The copy constructor.

Attention:
Although the implementation is the same as the default copy constructor, GCC 2.95.3 needs an implementation else the exception is not caught. It is not needed by GCC 3.2.1.

Definition at line 25 of file DataRepException.cxx.

References DataRepException::m_type.

~DataRepException (  )  throw () [virtual]

The virtual destructor.

Appears that the required declaration has to be the same as the base class, according to GCC 3.2.1.

Definition at line 32 of file DataRepException.cxx.


Member Function Documentation

const char * what (  )  const throw () [virtual]

The standard method to return a string giving message about the cause of the exception.

Definition at line 38 of file DataRepException.cxx.

References DataRepException::m_type.


Member Data Documentation

std::string m_type [private]

The binding label that could not be found in NTuple.

Definition at line 42 of file DataRepException.h.

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


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