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

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 35 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::DataRepException const std::string type  ) 
 

Constructor taking the bad binding lable type as argument.

Definition at line 14 of file DataRepException.cxx.

References m_type.

DataRepException::DataRepException const DataRepException  ) 
 

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 20 of file DataRepException.cxx.

References m_type.

DataRepException::~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 26 of file DataRepException.cxx.


Member Function Documentation

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

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

Definition at line 32 of file DataRepException.cxx.

References m_type.


Member Data Documentation

std::string DataRepException::m_type [private]
 

The binding label that could not be found in NTuple.

Definition at line 40 of file DataRepException.h.

Referenced by DataRepException(), 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