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.

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

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

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

Exception
Definition: hltDiff.cc:245
edm::errors::Configuration
Definition: EDMException.h:36