CMS 3D CMS Logo

MakeDataException Class Reference

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


Detailed Description

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

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

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

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