Skip to content

Add a proper check for the type of the error message  #27

@katilp

Description

@katilp

Now all errors are expected to be of format:

No "L1GtStableParametersRcd" record found in the EventSetup. Please add an ESSource or ESProducer that delivers such a record.

The code could fail for other reasons, add a check for the error message content, and exit in case of other failures.

Examples of other errors:

Principal::getByLabel: Found zero products matching all criteria Looking for type: edm::AssociationVector<edm::RefToBaseProd<reco::Jet>,std::vector<float>,edm::RefToBase<reco::Jet>,unsigned int,edm::helper::AssociationIdenticalKeyReference> Looking for module label: softElectronByPtBJetTags Looking for productInstanceName: Additional Info: [a] If you wish to continue processing events after a ProductNotFound exception, add "SkipEvent = cms.untracked.vstring('ProductNotFound')" to the "options" PSet in the configuration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions