Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:15:48

0001 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0002 #include "FWCore/ServiceRegistry/interface/Service.h"
0003 #include "HeterogeneousCore/SonicTriton/interface/TritonException.h"
0004 #include "HeterogeneousCore/SonicTriton/interface/TritonService.h"
0005 
0006 TritonException::TritonException(std::string const& aCategory, bool signal) : cms::Exception(aCategory) {
0007   if (signal) {
0008     edm::Service<TritonService> ts;
0009     ts->notifyCallStatus(false);
0010   }
0011 }
0012 
0013 void TritonException::convertToWarning() const { edm::LogWarning(category()) << explainSelf(); }