CMS 3D CMS Logo

Functions
edm::pset::exceptions Namespace Reference

Functions

void throwWrongNumberOfElements (std::string const &iParameterName, size_t iExpected, size_t iGot)
 

Function Documentation

◆ throwWrongNumberOfElements()

void edm::pset::exceptions::throwWrongNumberOfElements ( std::string const &  iParameterName,
size_t  iExpected,
size_t  iGot 
)

Definition at line 33 of file ParameterSet.cc.

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

Referenced by edm::ParameterTypeTraits< std::array< T, N > >::convert().

33  {
34  throw Exception(errors::Configuration) << "The parameter '" << iName << "' should have " << iExpected
35  << " elements, but has " << iGot << " elements in the configuration.\n";
36  }