CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
edm::handleimpl Namespace Reference

Functions

void throwConvertTypeError (std::type_info const &expected, std::type_info const &actual)
 
void throwInvalidReference ()
 

Function Documentation

void edm::handleimpl::throwConvertTypeError ( std::type_info const &  expected,
std::type_info const &  actual 
)

Definition at line 11 of file ConvertHandle.cc.

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

Referenced by edm::convert_handle(), and edm::getProductByTag().

11  {
12  throw Exception(errors::LogicError, "TypeMismatch")
13  << "edm::BasicHandle contains a product of type " << actual.name() << ".\n"
14  << "A type of " << expected.name() << "was expected.";
15  }
void edm::handleimpl::throwInvalidReference ( )

Definition at line 6 of file ConvertHandle.cc.

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

Referenced by edm::convert_handle().

6  {
7  throw Exception(errors::InvalidReference, "NullPointer")
8  << "edm::BasicHandle has null pointer to Wrapper";
9  }