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

Exception — sgkey hash collision. More...

#include <exceptions.h>

Inheritance diagram for SG::ExcSgkeyCollision:
Collaboration diagram for SG::ExcSgkeyCollision:

Public Member Functions

 ExcSgkeyCollision (const std::string &new_key, CLID new_clid, const std::string &old_key, CLID old_clid, sgkey_t sgkey)
 Constructor. More...
 

Detailed Description

Exception — sgkey hash collision.

We're trying to add a new non-transient key to a store, but the key+clid hashes to a sgkey_t value that's already used.

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

Constructor & Destructor Documentation

◆ ExcSgkeyCollision()

SG::ExcSgkeyCollision::ExcSgkeyCollision ( const std::string &  new_key,
CLID  new_clid,
const std::string &  old_key,
CLID  old_clid,
sgkey_t  sgkey 
)

Constructor.

Parameters
new_keyString SG key of the new item we're trying to add.
new_clidCLID for the new item we're trying to add.
old_keyString SG key of the existing item.
old_clidCLID for the existing item.
sgkeyHashed key of both.

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

129  : std::runtime_error (excSgkeyCollision_format (new_key, new_clid,
130  old_key, old_clid,
131  sgkey))
132 {
133 }

The documentation for this class was generated from the following files:
common.sgkey
def sgkey(tool)
Definition: common.py:1028
SG::excSgkeyCollision_format
std::string excSgkeyCollision_format(const std::string &new_key, CLID new_clid, const std::string &old_key, CLID old_clid, sgkey_t sgkey)
Helper: Format exception string.
Definition: Control/SGTools/src/exceptions.cxx:102