CMS 3D CMS Logo

MakeDataException Class Reference

#include <FWCore/Framework/interface/MakeDataException.h>

Detailed Description

Description: An exception that is thrown whenever a Provider had a problem with its algorithm.

Usage: This exception will be thrown automatically if a a class that inherits from ESProductResolverTemplate<> returns 0 from its make method.

If you wish to explain the reason for the error, you can throw a MakeDataException from within your Provider E.g.

if(outOfBoundsValue) {
throw MakeDataException(" value out of bounds",
MakeDataExceptionInfo<record_type, value_type>(iDataKey));
}