CMS 3D CMS Logo

NoRecordException Class Reference

#include <Framework/interface/NoRecordException.h>

Detailed Description

Description: An exception that is thrown whenever a EventSetup is asked to retrieve a Record it does not have.

Usage: This exception will be thrown if you call the EventSetup method get() and the record type you request does not exist. E.g.

try {
iEventSetup.get<MyRecord>()...;
} catch(eventsetup::NoRecordException& iException) {
//no record of type MyRecord found in EventSetup
...
}