ATLAS Offline Software
Loading...
Searching...
No Matches
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.
 ~ExcBadDataProxyCast () throw ()
virtual const char * what () const noexcept override
 Return the message for this exception.

Private Attributes

std::string m_what
 The message for this exception.

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}
std::string m_what
The message for this exception.
std::string excBadDataProxyCast_format(CLID id, const std::type_info &tid)
Helper: Format exception string.

◆ ~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
overridevirtualnoexcept

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: