diff --git a/GeneratorInterface/Core/plugins/ExternalGeneratorFilter.cc b/GeneratorInterface/Core/plugins/ExternalGeneratorFilter.cc index 8255a9932f6ac..303e284fd5031 100644 --- a/GeneratorInterface/Core/plugins/ExternalGeneratorFilter.cc +++ b/GeneratorInterface/Core/plugins/ExternalGeneratorFilter.cc @@ -77,8 +77,9 @@ namespace externalgen { if (not channel_.doTransition( [&value, &iDeserializer]() { value = iDeserializer.deserialize(); }, iTrans, iTransitionID)) { externalFailed_ = true; - throw cms::Exception("ExternalFailed") << "failed waiting for external process " << channel_.uniqueID() - << ". Timed out after " << channel_.maxWaitInSeconds() << " seconds."; + throw edm::Exception(edm::errors::EventGenerationFailure) + << "failed waiting for external process " << channel_.uniqueID() << ". Timed out after " + << channel_.maxWaitInSeconds() << " seconds."; } return value; }