CMS 3D CMS Logo

Functions
edm::principal_get_adapter_detail Namespace Reference

Functions

void throwOnPrematureRead (char const *principalType, TypeID const &productType, std::string const &moduleLabel, std::string const &productInstanceName)
 
void throwOnPrematureRead (char const *principalType, TypeID const &productType)
 
void throwOnPrematureRead (char const *principalType, TypeID const &productType, EDGetToken)
 
void throwOnPutOfNullProduct (char const *principalType, TypeID const &productType, std::string const &productInstanceName)
 
void throwOnPutOfUninitializedToken (char const *principalType, std::type_info const &productType)
 
void throwOnPutOfWrongType (std::type_info const &wrongType, TypeID const &rightType)
 

Function Documentation

void edm::principal_get_adapter_detail::throwOnPrematureRead ( char const *  principalType,
TypeID const &  productType,
std::string const &  moduleLabel,
std::string const &  productInstanceName 
)

Definition at line 55 of file PrincipalGetAdapter.cc.

Referenced by edm::LuminosityBlock::get(), edm::Run::get(), edm::LuminosityBlock::getByLabel(), edm::Run::getByLabel(), edm::OccurrenceForOutput::getByToken(), edm::LuminosityBlock::getByToken(), edm::Run::getByToken(), edm::OccurrenceForOutput::getHandle(), edm::LuminosityBlock::getHandle(), edm::Run::getHandle(), edm::LuminosityBlock::getManyByType(), and edm::Run::getManyByType().

58  {
59  //throw Exception(errors::LogicError)
60  LogWarning("LogicError") << "::getByLabel: An attempt was made to read a " << principalType << " product before end"
61  << principalType << "() was called.\n"
62  << "The product is of type '" << productType << "'.\nThe specified ModuleLabel was '"
63  << moduleLabel << "'.\nThe specified productInstanceName was '" << productInstanceName
64  << "'.\n";
65  }
void edm::principal_get_adapter_detail::throwOnPrematureRead ( char const *  principalType,
TypeID const &  productType 
)

Definition at line 67 of file PrincipalGetAdapter.cc.

67  {
68  //throw Exception(errors::LogicError)
69  LogWarning("LogicError") << "::getManyByType: An attempt was made to read a " << principalType
70  << " product before end" << principalType << "() was called.\n"
71  << "The product is of type '" << productType << "'.\n";
72  }
void edm::principal_get_adapter_detail::throwOnPrematureRead ( char const *  principalType,
TypeID const &  productType,
EDGetToken  token 
)

Definition at line 74 of file PrincipalGetAdapter.cc.

References Exception, edm::EDGetToken::index(), and edm::errors::LogicError.

76  {
77  throw Exception(errors::LogicError) << "::getByToken: An attempt was made to read a " << principalType
78  << " product before end" << principalType << "() was called.\n"
79  << "The index of the token was " << token.index() << ".\n";
80  }
void edm::principal_get_adapter_detail::throwOnPutOfNullProduct ( char const *  principalType,
TypeID const &  productType,
std::string const &  productInstanceName 
)

Definition at line 32 of file PrincipalGetAdapter.cc.

References Exception, and edm::errors::NullPointerError.

Referenced by edm::LuminosityBlock::put(), edm::Run::put(), and edm::Event::put().

34  {
36  << principalType << "::put: A null unique_ptr was passed to 'put'.\n"
37  << "The pointer is of type " << productType << ".\nThe specified productInstanceName was '"
38  << productInstanceName << "'.\n";
39  }
void edm::principal_get_adapter_detail::throwOnPutOfUninitializedToken ( char const *  principalType,
std::type_info const &  productType 
)

Definition at line 41 of file PrincipalGetAdapter.cc.

References Exception, and edm::errors::LogicError.

Referenced by edm::LuminosityBlock::emplace(), edm::Run::emplace(), edm::Event::emplace(), edm::Event::getRefBeforePut(), edm::LuminosityBlock::put(), edm::Run::put(), and edm::Event::put().

42  {
43  TypeID productType{type};
44  throw Exception(errors::LogicError) << principalType << "::put: An uninitialized EDPutToken was passed to 'put'.\n"
45  << "The pointer is of type " << productType << ".\n";
46  }
type
Definition: HCALResponse.h:21
void edm::principal_get_adapter_detail::throwOnPutOfWrongType ( std::type_info const &  wrongType,
TypeID const &  rightType 
)

Definition at line 48 of file PrincipalGetAdapter.cc.

References Exception, and edm::errors::LogicError.

Referenced by edm::LuminosityBlock::emplace(), edm::Run::emplace(), edm::Event::emplace(), edm::Event::getRefBeforePut(), edm::LuminosityBlock::put(), edm::Run::put(), and edm::Event::put().

48  {
49  TypeID wrongTypeID{wrongType};
50  throw Exception(errors::LogicError) << "The registered type for an EDPutToken does not match the put type.\n"
51  << "The expected type " << rightType << "\nThe put type " << wrongTypeID
52  << ".\n";
53  }