| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

ParamException Class Reference

Exception used in the ParamSet class. More...

#include <DetDesc/ParamException.h>

Inheritance diagram for ParamException:

[legend]
Collaboration diagram for ParamException:
[legend]
List of all members.

Public Types

 BAD_KEY
 BAD_TYPE
enum  ExceptionType { BAD_KEY, BAD_TYPE }
 Type of problem encountered in ParamValidDataObject. More...

Public Member Functions

 ParamException (const std::string &name, ExceptionType t=BAD_KEY)
 Constructor.
 ParamException (const std::string &name, const std::type_info &req, const std::type_info &actual)
 Constructor for a BAD_TYPE exception giving informations about the types.
virtual ~ParamException () throw ()
 Destructor.
ExceptionType type () const
 Returns the type of ParamException.
virtual const std::string & message () const
virtual const std::string & setMessage (const std::string &newMessage)
virtual const std::string & tag () const
virtual const std::string & setTag (const std::string &newTag)
virtual const StatusCodecode () const
virtual const StatusCodesetCode (const StatusCode &newStatus)
virtual GaudiExceptionprevious () const
virtual std::ostream & printOut (std::ostream &os=std::cerr) const
virtual MsgStreamprintOut (MsgStream &os) const
virtual GaudiExceptionclone () const
virtual const char * what () const

Protected Attributes

std::string m_message
std::string m_tag
StatusCode m_code
GaudiExceptionm_previous

Private Attributes

ExceptionType m_type
 store the type

Detailed Description

Exception used in the ParamSet class.

Author:
Sebastien Ponce

Andrea Valassi

Marco Clemencic

Definition at line 20 of file ParamException.h.


Member Enumeration Documentation

enum ParamException::ExceptionType

Type of problem encountered in ParamValidDataObject.

Enumerator:
BAD_KEY 
BAD_TYPE 

Definition at line 25 of file ParamException.h.

00025                      {
00026     BAD_KEY,
00027     BAD_TYPE
00028   };


Constructor & Destructor Documentation

ParamException::ParamException ( const std::string &  name,
ExceptionType  t = BAD_KEY 
)

Constructor.

ParamException::ParamException ( const std::string &  name,
const std::type_info &  req,
const std::type_info &  actual 
)

Constructor for a BAD_TYPE exception giving informations about the types.

virtual ParamException::~ParamException (  )  throw () [virtual]

Destructor.


Member Function Documentation

ExceptionType ParamException::type (  )  const [inline]

Returns the type of ParamException.

Definition at line 40 of file ParamException.h.

00040 { return m_type; }


Member Data Documentation

ExceptionType ParamException::m_type [private]

store the type

Definition at line 45 of file ParamException.h.


The documentation for this class was generated from the following file:
| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:00:19 2011 for DetDesc by doxygen 1.4.7