15#include "GaudiKernel/System.h"
26 return std::string(
"AthenaPoolCnvSvc::::ExcNoDictForClass: "
27 "Can't find dictionary information for class: ") +
28 System::typeinfoName(ti);
59 return std::string(
"AthenaPoolCnvSvc::::ExcUnsupportedVersion: "
60 "Unsupported persistent version of ") +
61 System::typeinfoName(ti) +
" found; guid: " + guid.toString();
94 const std::exception& ex,
95 const std::type_info& ti,
96 const std::string& key)
98 return std::format(
"AthenaPoolCnvSvc::::ExcCaughtException: Caught exception in {} while {}{}/{}: {}: {}",
99 fnname, action, System::typeinfoName(ti), key,
100 System::typeinfoName(
typeid(ex)), ex.what());
114 const std::exception& ex,
115 const std::type_info& ti,
116 const std::string& key)
134 const std::exception& ex,
135 const std::type_info& ti,
136 const std::string& key)
Exceptions that can be thrown from AthenaPoolCnvSvc.
Exception — Caught an exception during conversion.
ExcCaughtException(const char *fnname, const char *action, const std::exception &ex, const std::type_info &ti, const std::string &key)
Constructor.
Exception — Can't find dictionary information for class.
ExcNoDictForClass(const std::type_info &ti)
Constructor.
Exception — Unsupported persistent version of CLASS found.
ExcUnsupportedVersion(const std::type_info &ti, const Guid &guid)
Constructor.
This class provides a encapsulation of a GUID/UUID/CLSID/IID data structure (128 bit number).
Generate stack trace backs from a caught exception.
void throwExcUnsupportedVersion(const std::type_info &ti, const Guid &guid)
Throw a AthenaPoolCnvSvc::ExcUnsupportedVersion exception.
void throwExcNoDictForClass(const std::type_info &ti)
Throw a AthenaPoolCnvSvc::ExcNoDictForClass exception.
std::string excCaughtException_format(const char *fnname, const char *action, const std::exception &ex, const std::type_info &ti, const std::string &key)
Helper: format exception error string.
std::string excUnsupportedVersion_format(const std::type_info &ti, const Guid &guid)
Helper: format exception error string.
std::string excNoDictForClass_format(const std::type_info &ti)
Helper: format exception error string.
void throwExcCaughtException(const char *fnname, const char *action, const std::exception &ex, const std::type_info &ti, const std::string &key)
Throw a AthenaPoolCnvSvc::ExcCaughtException exception.
void exctrace(const std::exception &e, IOFD fd=IOFD_INVALID)
Print out information for the last exception.