CMS 3D CMS Logo

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().

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

Definition at line 6 of file ConvertHandle.cc.

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

Referenced by edm::convert_handle().

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