Skip to content

Commit

Permalink
Changed log message to exception in MixCollection
Browse files Browse the repository at this point in the history
Exceptions are already being used in other constructors of
MixCollection
  • Loading branch information
Dr15Jones committed Feb 8, 2021
1 parent 7e048cc commit 273e27f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions SimDataFormats/CrossingFrame/interface/MixCollection.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include <string>
#include <vector>

#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "SimDataFormats/CrossingFrame/interface/CrossingFrame.h"

template <class T>
Expand Down Expand Up @@ -156,8 +155,8 @@ MixCollection<T>::MixCollection(const CrossingFrame<T> *cf, const std::pair<int,
crossingFrames_.push_back(cf);
init(bunchRange);
} else
edm::LogWarning("MixCollectionInvalidCtr") << "Could not construct MixCollection for " << typeid(T).name()
<< ", pointer to CrossingFrame invalid!" << std::endl;
throw cms::Exception("InvalidPtr") << "Could not construct MixCollection for " << typeid(T).name()
<< ", pointer to CrossingFrame invalid!";
}

template <class T>
Expand Down

0 comments on commit 273e27f

Please sign in to comment.