ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
SG::ExcBadDataProxyCast Class Reference

Exception — Bad cast of DataProxy with CLID. More...

#include <exceptions.h>

Inheritance diagram for SG::ExcBadDataProxyCast:
Collaboration diagram for SG::ExcBadDataProxyCast:

Public Member Functions

 ExcBadDataProxyCast (CLID id, const std::type_info &tid)
 Constructor. More...
 
 ~ExcBadDataProxyCast () throw ()
 
virtual const char * what () const throw ()
 Return the message for this exception. More...
 

Private Attributes

std::string m_what
 The message for this exception. More...
 

Detailed Description

Exception — Bad cast of DataProxy with CLID.

You tried to retrieve an object in StoreGate as an incompatible type.

Definition at line 36 of file Control/SGTools/SGTools/exceptions.h.

Constructor & Destructor Documentation

◆ ExcBadDataProxyCast()

SG::ExcBadDataProxyCast::ExcBadDataProxyCast ( CLID  id,
const std::type_info &  tid 
)

Constructor.

Parameters
idCLID of the DataProxy.
tidType to which we're trying to convert the object.

Definition at line 37 of file Control/SGTools/src/exceptions.cxx.

39 {
40 }

◆ ~ExcBadDataProxyCast()

SG::ExcBadDataProxyCast::~ExcBadDataProxyCast ( )
throw (
)
inline

Definition at line 49 of file Control/SGTools/SGTools/exceptions.h.

49 {}

Member Function Documentation

◆ what()

const char * SG::ExcBadDataProxyCast::what ( ) const
throw (
)
virtual

Return the message for this exception.

Definition at line 46 of file Control/SGTools/src/exceptions.cxx.

47 {
48  return m_what.c_str();
49 }

Member Data Documentation

◆ m_what

std::string SG::ExcBadDataProxyCast::m_what
private

The message for this exception.

Definition at line 60 of file Control/SGTools/SGTools/exceptions.h.


The documentation for this class was generated from the following files:
SG::ExcBadDataProxyCast::m_what
std::string m_what
The message for this exception.
Definition: Control/SGTools/SGTools/exceptions.h:60
SG::excBadDataProxyCast_format
std::string excBadDataProxyCast_format(CLID id, const std::type_info &tid)
Helper: Format exception string.
Definition: Control/SGTools/src/exceptions.cxx:23