ATLAS Offline Software
Public Member Functions | List of all members
SG::ExcNonConstHandleKey Class Reference

Exception — Attempt to get non-const VarHandleKey from non-owning VarHandle. More...

#include <exceptions.h>

Inheritance diagram for SG::ExcNonConstHandleKey:
Collaboration diagram for SG::ExcNonConstHandleKey:

Public Member Functions

 ExcNonConstHandleKey (CLID clid, const std::string &sgkey, const std::string &storename)
 Constructor. More...
 

Detailed Description

Exception — Attempt to get non-const VarHandleKey from non-owning VarHandle.

If a Read/Write/Update handle is initialized from a HandleKey object, then that HandleKey is const, and cannot be retrieved as a non-const reference. A non-const HandleKey can only be retrieved if the handle was not initialized from a HandleKey.

Definition at line 249 of file Control/StoreGate/StoreGate/exceptions.h.

Constructor & Destructor Documentation

◆ ExcNonConstHandleKey()

SG::ExcNonConstHandleKey::ExcNonConstHandleKey ( CLID  clid,
const std::string &  sgkey,
const std::string &  storename 
)

Constructor.

Parameters
clidCLID from the key.
sgkeyStoreGate key from the key.
storenameStore name from the key.

Definition at line 323 of file Control/StoreGate/src/exceptions.cxx.

326  : std::runtime_error (excNonConstHandleKey_format (clid, sgkey, storename))
327 {
328 }

The documentation for this class was generated from the following files:
common.sgkey
def sgkey(tool)
Definition: common.py:1028
SG::excNonConstHandleKey_format
std::string excNonConstHandleKey_format(CLID clid, const std::string &sgkey, const std::string &storename)
Helper: format exception error string.
Definition: Control/StoreGate/src/exceptions.cxx:304