CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions | Private Attributes | Friends
cms::Exception Class Reference

#include <Exception.h>

Inheritance diagram for cms::Exception:
Clustering1DException cond::Exception DetLayerException edm::eventsetup::MakeDataException edm::eventsetup::NoDataExceptionBase edm::eventsetup::NoRecordException< T > edm::Exception edm::ProductDeletedException edm::UnknownModuleException GCC11_FINAL< T, TOPO > LinPtException MeasurementDetException npstat::NpstatException ora::Exception popcon::Exception RPCException StatisticsException StripClusterizerAlgorithm::InvalidChargeException TrajectoryStateException

Public Member Functions

void addAdditionalInfo (std::string const &info)
 
void addAdditionalInfo (char const *info)
 
void addContext (std::string const &context)
 
void addContext (char const *context)
 
std::list< std::string > const & additionalInfo () const
 
bool alreadyPrinted () const
 
void append (Exception const &another)
 
void append (std::string const &more_information)
 
void append (char const *more_information)
 
std::string const & category () const
 
void clearAdditionalInfo ()
 
void clearContext ()
 
void clearMessage ()
 
virtual Exceptionclone () const
 
std::list< std::string > const & context () const
 
 Exception (std::string const &aCategory)
 
 Exception (char const *aCategory)
 
 Exception (std::string const &aCategory, std::string const &message)
 
 Exception (char const *aCategory, std::string const &message)
 
 Exception (std::string const &aCategory, char const *message)
 
 Exception (char const *aCategory, char const *message)
 
 Exception (std::string const &aCategory, std::string const &message, Exception const &another)
 
 Exception (Exception const &other)
 
virtual std::string explainSelf () const
 
std::list< std::string > history () const
 
std::string message () const
 
Exceptionoperator= (Exception const &other)
 
void raise ()
 
int returnCode () const
 
void setAdditionalInfo (std::list< std::string > const &info)
 
void setAlreadyPrinted (bool value)
 
void setContext (std::list< std::string > const &context)
 
void swap (Exception &other)
 
virtual char const * what () const throw ()
 
virtual ~Exception () throw ()
 

Private Member Functions

void init (std::string const &message)
 
virtual void rethrow ()
 
virtual int returnCode_ () const
 

Private Attributes

std::list< std::string > additionalInfo_
 
bool alreadyPrinted_
 
std::string category_
 
std::list< std::string > context_
 
std::ostringstream ost_
 
std::string what_
 

Friends

template<typename E , typename T >
detail::Desired< E,
detail::is_derived_or_same
< Exception, E >::value >
::type
operator<< (E &e, T const &stuff)
 
template<typename E , typename T >
detail::Desired< E,
detail::is_derived_or_same
< Exception, E >::value >
::type const & 
operator<< (E const &e, T const &stuff)
 
template<typename E >
detail::Desired< E,
detail::is_derived_or_same
< Exception, E >::value >
::type
operator<< (E &e, std::ostream &(*f)(std::ostream &))
 
template<typename E >
detail::Desired< E,
detail::is_derived_or_same
< Exception, E >::value >
::type const & 
operator<< (E const &e, std::ostream &(*f)(std::ostream &))
 
template<typename E >
detail::Desired< E,
detail::is_derived_or_same
< Exception, E >::value >
::type
operator<< (E &e, std::ios_base &(*f)(std::ios_base &))
 
template<typename E >
detail::Desired< E,
detail::is_derived_or_same
< Exception, E >::value >
::type const & 
operator<< (E const &e, std::ios_base &(*f)(std::ios_base &))
 

Detailed Description

Definition at line 68 of file Exception.h.

Constructor & Destructor Documentation

Exception::Exception ( std::string const &  aCategory)
explicit

Definition at line 6 of file Exception.cc.

Referenced by clone().

6  :
8  ost_(),
9  category_(aCategory),
10  what_(),
11  context_(),
13  alreadyPrinted_(false)
14  {
15  }
std::list< std::string > additionalInfo_
Definition: Exception.h:212
std::ostringstream ost_
Definition: Exception.h:208
std::string category_
Definition: Exception.h:209
std::list< std::string > context_
Definition: Exception.h:211
bool alreadyPrinted_
Definition: Exception.h:213
std::string what_
Definition: Exception.h:210
Exception::Exception ( char const *  aCategory)
explicit

Definition at line 17 of file Exception.cc.

17  :
19  ost_(),
20  category_(std::string(aCategory)),
21  what_(),
22  context_(),
24  alreadyPrinted_(false)
25  {
26  }
std::list< std::string > additionalInfo_
Definition: Exception.h:212
std::ostringstream ost_
Definition: Exception.h:208
std::string category_
Definition: Exception.h:209
std::list< std::string > context_
Definition: Exception.h:211
bool alreadyPrinted_
Definition: Exception.h:213
std::string what_
Definition: Exception.h:210
Exception::Exception ( std::string const &  aCategory,
std::string const &  message 
)

Definition at line 28 of file Exception.cc.

References init().

29  :
31  ost_(),
32  category_(aCategory),
33  what_(),
34  context_(),
36  alreadyPrinted_(false)
37  {
38  init(message);
39  }
std::list< std::string > additionalInfo_
Definition: Exception.h:212
std::ostringstream ost_
Definition: Exception.h:208
std::string message() const
Definition: Exception.cc:187
std::string category_
Definition: Exception.h:209
std::list< std::string > context_
Definition: Exception.h:211
bool alreadyPrinted_
Definition: Exception.h:213
std::string what_
Definition: Exception.h:210
void init(std::string const &message)
Definition: Exception.cc:82
Exception::Exception ( char const *  aCategory,
std::string const &  message 
)

Definition at line 41 of file Exception.cc.

References init().

42  :
44  ost_(),
45  category_(std::string(aCategory)),
46  what_(),
47  context_(),
49  alreadyPrinted_(false)
50  {
51  init(message);
52  }
std::list< std::string > additionalInfo_
Definition: Exception.h:212
std::ostringstream ost_
Definition: Exception.h:208
std::string message() const
Definition: Exception.cc:187
std::string category_
Definition: Exception.h:209
std::list< std::string > context_
Definition: Exception.h:211
bool alreadyPrinted_
Definition: Exception.h:213
std::string what_
Definition: Exception.h:210
void init(std::string const &message)
Definition: Exception.cc:82
Exception::Exception ( std::string const &  aCategory,
char const *  message 
)

Definition at line 55 of file Exception.cc.

References init(), and AlCaHLTBitMon_QueryRunRegistry::string.

56  :
58  ost_(),
59  category_(aCategory),
60  what_(),
61  context_(),
63  alreadyPrinted_(false)
64  {
66  }
std::list< std::string > additionalInfo_
Definition: Exception.h:212
std::ostringstream ost_
Definition: Exception.h:208
std::string message() const
Definition: Exception.cc:187
std::string category_
Definition: Exception.h:209
std::list< std::string > context_
Definition: Exception.h:211
bool alreadyPrinted_
Definition: Exception.h:213
std::string what_
Definition: Exception.h:210
void init(std::string const &message)
Definition: Exception.cc:82
Exception::Exception ( char const *  aCategory,
char const *  message 
)

Definition at line 69 of file Exception.cc.

References init(), and AlCaHLTBitMon_QueryRunRegistry::string.

70  :
72  ost_(),
73  category_(std::string(aCategory)),
74  what_(),
75  context_(),
77  alreadyPrinted_(false)
78  {
80  }
std::list< std::string > additionalInfo_
Definition: Exception.h:212
std::ostringstream ost_
Definition: Exception.h:208
std::string message() const
Definition: Exception.cc:187
std::string category_
Definition: Exception.h:209
std::list< std::string > context_
Definition: Exception.h:211
bool alreadyPrinted_
Definition: Exception.h:213
std::string what_
Definition: Exception.h:210
void init(std::string const &message)
Definition: Exception.cc:82
Exception::Exception ( std::string const &  aCategory,
std::string const &  message,
Exception const &  another 
)

Definition at line 90 of file Exception.cc.

References append(), message(), and ost_.

92  :
94  ost_(),
95  category_(aCategory),
96  what_(),
97  context_(another.context()),
98  additionalInfo_(another.additionalInfo()),
99  alreadyPrinted_(false)
100  {
101  ost_ << message;
102  // check for newline at end of message first
103  if(!message.empty() && message[message.size()-1]!='\n') {
104  ost_ << "\n";
105  }
106  append(another);
107  }
std::list< std::string > additionalInfo_
Definition: Exception.h:212
void append(Exception const &another)
Definition: Exception.cc:203
std::ostringstream ost_
Definition: Exception.h:208
std::string message() const
Definition: Exception.cc:187
std::string category_
Definition: Exception.h:209
std::list< std::string > context_
Definition: Exception.h:211
bool alreadyPrinted_
Definition: Exception.h:213
std::string what_
Definition: Exception.h:210
Exception::Exception ( Exception const &  other)

Definition at line 109 of file Exception.cc.

References ost_.

109  :
110  std::exception(),
111  ost_(),
112  category_(other.category_),
113  what_(other.what_),
114  context_(other.context_),
115  additionalInfo_(other.additionalInfo_),
116  alreadyPrinted_(other.alreadyPrinted_)
117  {
118  ost_ << other.ost_.str();
119  }
std::list< std::string > additionalInfo_
Definition: Exception.h:212
std::ostringstream ost_
Definition: Exception.h:208
std::string category_
Definition: Exception.h:209
std::list< std::string > context_
Definition: Exception.h:211
bool alreadyPrinted_
Definition: Exception.h:213
std::string what_
Definition: Exception.h:210
Exception::~Exception ( )
throw (
)
virtual

Reimplemented in edm::Exception, ora::Exception, cond::Exception, and popcon::Exception.

Definition at line 121 of file Exception.cc.

121  {
122  }

Member Function Documentation

void Exception::addAdditionalInfo ( std::string const &  info)

Definition at line 235 of file Exception.cc.

References additionalInfo_.

Referenced by XrdFile::addConnection(), edm::Path::handleWorkerFailure(), StorageFactory::open(), and edm::EventProcessor::runToCompletion().

235  {
236  additionalInfo_.push_back(info);
237  }
std::list< std::string > additionalInfo_
Definition: Exception.h:212
void Exception::addAdditionalInfo ( char const *  info)

Definition at line 239 of file Exception.cc.

References additionalInfo_, and AlCaHLTBitMon_QueryRunRegistry::string.

239  {
240  additionalInfo_.push_back(std::string(info));
241  }
std::list< std::string > additionalInfo_
Definition: Exception.h:212
void Exception::addContext ( std::string const &  context)

Definition at line 227 of file Exception.cc.

References context_.

Referenced by edm::addContextAndPrintException(), edm::eventsetup::ComponentFactory< T >::addTo(), edm::eventsetup::EventSetupRecord::addTraceInfoToCmsException(), L1GlobalTriggerObjectMaps::algorithmResult(), L1GlobalTriggerObjectMaps::AlgorithmResult::AlgorithmResult(), CompareToObjectMapRecord::analyze(), edm::Worker::beginJob(), edm::EventProcessor::beginJob(), L1GlobalTriggerObjectMaps::consistencyCheck(), edm::serviceregistry::ServicesManager::createServices(), edm::EDLooperBase::doDuringLoop(), edm::Worker::endJob(), PhysicsTools::MVATrainerLooper::endOfLoop(), edm::Path::exceptionContext(), L1GlobalTriggerObjectMaps::getCombinationsInCondition(), L1GlobalTriggerObjectMaps::ConditionsInAlgorithm::getConditionResult(), edm::RootTree::getEntry(), L1GlobalTriggerObjectMaps::CombinationsInCondition::getObjectIndex(), L1GlobalTriggerObjectMaps::getStartEndIndex(), edm::makeInput(), DCacheFile::open(), RFIOFile::open(), XrdFile::open(), StorageFactory::open(), edm::StreamerInputFile::openStreamerFile(), DCacheFile::position(), RFIOFile::position(), XrdFile::position(), edm::Schedule::processOneOccurrence(), ConvertObjectMapRecord::produce(), DCacheFile::read(), RFIOFile::read(), XrdFile::read(), edm::StreamerInputFile::readBytes(), DCacheFile::readv(), XrdFile::readv(), XrdFile::readv_unpack(), XrdFile::resize(), edm::UnscheduledCallProducer::runNow(), DQMRootSource::setupFile(), edm::StreamerInputFile::skipBytes(), DCacheStorageMaker::stagein(), RFIOStorageMaker::stagein(), edm::Maker::throwConfigurationException(), throwStorageError(), edm::Maker::throwValidationException(), edm::UnscheduledCallProducer::tryToFillImpl(), L1GlobalTriggerObjectMaps::updateOperandTokenVector(), edm::eventsetup::validateEventSetupParameters(), DCacheFile::write(), RFIOFile::write(), XrdFile::write(), and edm::RootOutputFile::writeIndexIntoFile().

227  {
228  context_.push_back(context);
229  }
std::list< std::string > const & context() const
Definition: Exception.cc:191
std::list< std::string > context_
Definition: Exception.h:211
void Exception::addContext ( char const *  context)

Definition at line 231 of file Exception.cc.

References context_, and AlCaHLTBitMon_QueryRunRegistry::string.

231  {
232  context_.push_back(std::string(context));
233  }
std::list< std::string > const & context() const
Definition: Exception.cc:191
std::list< std::string > context_
Definition: Exception.h:211
std::list< std::string > const & Exception::additionalInfo ( ) const

Definition at line 195 of file Exception.cc.

References additionalInfo_.

195  {
196  return additionalInfo_;
197  }
std::list< std::string > additionalInfo_
Definition: Exception.h:212
bool Exception::alreadyPrinted ( ) const

Definition at line 251 of file Exception.cc.

References alreadyPrinted_.

Referenced by edm::EventProcessor::runToCompletion().

251  {
252  return alreadyPrinted_;
253  }
bool alreadyPrinted_
Definition: Exception.h:213
void Exception::append ( Exception const &  another)
void Exception::append ( std::string const &  more_information)

Definition at line 207 of file Exception.cc.

References ost_.

207  {
208  ost_ << more_information;
209  }
std::ostringstream ost_
Definition: Exception.h:208
void Exception::append ( char const *  more_information)

Definition at line 211 of file Exception.cc.

References ost_.

211  {
212  ost_ << more_information;
213  }
std::ostringstream ost_
Definition: Exception.h:208
std::string const & Exception::category ( void  ) const
void Exception::clearAdditionalInfo ( )

Definition at line 223 of file Exception.cc.

References additionalInfo_.

223  {
224  additionalInfo_.clear();
225  }
std::list< std::string > additionalInfo_
Definition: Exception.h:212
void Exception::clearContext ( )

Definition at line 219 of file Exception.cc.

References context_.

219  {
220  context_.clear();
221  }
std::list< std::string > context_
Definition: Exception.h:211
void Exception::clearMessage ( )

Definition at line 215 of file Exception.cc.

References ost_.

Referenced by StorageFactory::open(), and edm::StreamerInputFile::openStreamerFile().

215  {
216  ost_.str("");
217  }
std::ostringstream ost_
Definition: Exception.h:208
Exception * Exception::clone ( void  ) const
virtual

Reimplemented in GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, edm::Exception, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, and GCC11_FINAL< T, TOPO >.

Definition at line 259 of file Exception.cc.

References Exception().

Referenced by edm::ExceptionCollector::addException(), and edm::ExceptionCollector::call().

259  {
260  return new Exception(*this);
261  }
Exception(std::string const &aCategory)
Definition: Exception.cc:6
std::list< std::string > const & Exception::context ( ) const

Definition at line 191 of file Exception.cc.

References context_.

Referenced by edm::Schedule::processOneOccurrence(), and setContext().

191  {
192  return context_;
193  }
std::list< std::string > context_
Definition: Exception.h:211
std::string Exception::explainSelf ( ) const
virtual

Definition at line 146 of file Exception.cc.

References additionalInfo_, trackerHits::c, category_, context_, prof2calltree::count, i, ost_, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by edm::ExceptionCollector::addException(), edm::EventProcessor::asyncRun(), ConvertedPhotonProducer::buildCollections(), edm::ExceptionCollector::call(), StorageFactory::check(), evf::FUEventProcessor::configuring(), evf::FUEventProcessor::enableCommon(), evf::FUEventProcessor::enableForkInEDM(), DTVDriftWriter::endJob(), DTT0Correction::endJob(), DTTTrigCorrection::endJob(), spf::SherpackFetcher::FnFileGet(), smproxy::SMProxyServer::handleFSMSoapMessage(), stor::StorageManager::handleFSMSoapMessage(), evf::FWEPWrapper::init(), edm::RootInputFileSequence::initFile(), L1GtUtils::LogicalExpressionL1Results::initialize(), main(), cms::operator<<(), edm::printCmsException(), edm::printCmsExceptionWarning(), CachedTrajectory::propagate(), ConversionVertexFinder::run(), StorageFactory::stagein(), evf::FWEPWrapper::stop(), TrajectoryStateClosestToPoint::TrajectoryStateClosestToPoint(), MuonUpdatorAtVertex::update(), what(), and edm::EventProcessor::~EventProcessor().

146  {
147  std::ostringstream ost;
148 
149  if (context_.empty()) {
150  ost << "An exception of category '" << category_ << "' occurred.\n";
151  }
152  else {
153  ost << "An exception of category '" << category_ << "' occurred while\n";
154  int count = 0;
155  for (std::list<std::string>::const_reverse_iterator i = context_.rbegin(),
156  iEnd = context_.rend();
157  i != iEnd; ++i, ++count) {
158  ost << " [" << count << "] " << *i << "\n";
159  }
160  }
161 
162  std::string centralMessage(ost_.str());
163  if (!centralMessage.empty()) {
164  ost << "Exception Message:\n";
165  ost << centralMessage;
166  if (centralMessage[centralMessage.size() - 1] != '\n') {
167  ost << "\n";
168  }
169  }
170 
171  if (!additionalInfo_.empty()) {
172  ost << " Additional Info:\n";
173  char c = 'a';
174  for (std::list<std::string>::const_reverse_iterator i = additionalInfo_.rbegin(),
175  iEnd = additionalInfo_.rend();
176  i != iEnd; ++i, ++c) {
177  ost << " [" << c << "] " << *i << "\n";
178  }
179  }
180  return ost.str();
181  }
std::list< std::string > additionalInfo_
Definition: Exception.h:212
int i
Definition: DBlmapReader.cc:9
std::ostringstream ost_
Definition: Exception.h:208
std::string category_
Definition: Exception.h:209
std::list< std::string > context_
Definition: Exception.h:211
std::list< std::string > Exception::history ( ) const

Definition at line 271 of file Exception.cc.

References category_.

271  {
272  std::list<std::string> returnValue;
273  returnValue.push_back(category_);
274  return returnValue;
275  }
std::string category_
Definition: Exception.h:209
void Exception::init ( std::string const &  message)
private

Definition at line 82 of file Exception.cc.

References message(), and ost_.

Referenced by Exception().

82  {
83  ost_ << message;
84  if(!message.empty()) {
85  unsigned sz = message.size()-1;
86  if(message[sz] != '\n' && message[sz] != ' ') ost_ << " ";
87  }
88  }
std::ostringstream ost_
Definition: Exception.h:208
std::string message() const
Definition: Exception.cc:187
std::string Exception::message ( ) const

Definition at line 187 of file Exception.cc.

References ost_.

Referenced by append(), edm::eventsetup::NoDataExceptionBase::constructMessage(), Exception(), init(), and StorageFactory::open().

187  {
188  return ost_.str();
189  }
std::ostringstream ost_
Definition: Exception.h:208
Exception & Exception::operator= ( Exception const &  other)

Definition at line 135 of file Exception.cc.

References swap(), and groupFilesInBlocks::temp.

135  {
136  Exception temp(other);
137  this->swap(temp);
138  return *this;
139  }
void swap(Exception &other)
Definition: Exception.cc:125
void cms::Exception::raise ( )
inline

Definition at line 105 of file Exception.h.

Referenced by edm::es::Label::operator()(), and edm::helper::Filler< Association< C > >::throwFillID().

105 {rethrow();}
virtual void rethrow()
Definition: Exception.cc:263
void Exception::rethrow ( )
privatevirtual

Reimplemented in edm::Exception.

Definition at line 263 of file Exception.cc.

263  {
264  throw *this;
265  }
int Exception::returnCode ( ) const

Definition at line 199 of file Exception.cc.

References returnCode_().

Referenced by edm::addContextAndPrintException().

199  {
200  return returnCode_();
201  }
virtual int returnCode_() const
Definition: Exception.cc:267
int Exception::returnCode_ ( ) const
privatevirtual

Reimplemented in edm::Exception.

Definition at line 267 of file Exception.cc.

Referenced by returnCode().

267  {
268  return 8001;
269  }
void Exception::setAdditionalInfo ( std::list< std::string > const &  info)

Definition at line 247 of file Exception.cc.

References additionalInfo_, and info.

247  {
249  }
std::list< std::string > additionalInfo_
Definition: Exception.h:212
void Exception::setAlreadyPrinted ( bool  value)

Definition at line 255 of file Exception.cc.

References alreadyPrinted_, and relativeConstraints::value.

Referenced by edm::addContextAndPrintException().

255  {
257  }
bool alreadyPrinted_
Definition: Exception.h:213
void Exception::setContext ( std::list< std::string > const &  context)

Definition at line 243 of file Exception.cc.

References context(), and context_.

243  {
244  context_ = context;
245  }
std::list< std::string > const & context() const
Definition: Exception.cc:191
std::list< std::string > context_
Definition: Exception.h:211
void Exception::swap ( Exception other)

Definition at line 125 of file Exception.cc.

References additionalInfo_, alreadyPrinted_, category_, context_, ost_, std::swap(), and what_.

Referenced by operator=().

125  {
126  ost_ << other.ost_.str();
127  category_.swap(other.category_);
128  what_.swap(other.what_);
129  context_.swap(other.context_);
130  additionalInfo_.swap(other.additionalInfo_);
131  std::swap(alreadyPrinted_, other.alreadyPrinted_);
132  }
std::list< std::string > additionalInfo_
Definition: Exception.h:212
std::ostringstream ost_
Definition: Exception.h:208
std::string category_
Definition: Exception.h:209
void swap(edm::DataFrameContainer &lhs, edm::DataFrameContainer &rhs)
std::list< std::string > context_
Definition: Exception.h:211
bool alreadyPrinted_
Definition: Exception.h:213
std::string what_
Definition: Exception.h:210
char const * Exception::what ( ) const
throw (
)
virtual

Definition at line 141 of file Exception.cc.

References explainSelf(), and what_.

Referenced by AdaptiveVertexReconstructor::AdaptiveVertexReconstructor(), MeasurementTrackerImpl::addStripDet(), SiStripDetVOffFakeBuilder::analyze(), MultiTrackValidatorGenPs::analyze(), MultiTrackValidator::analyze(), TrackerSeedValidator::analyze(), SiPixelLorentzAngleDB::analyze(), AlcaBeamMonitor::analyze(), L1CondDBPayloadWriter::analyze(), sistrip::SpyIdentifyRunsModule::analyze(), SiStripSpyMonitorModule::analyze(), PrimaryVertexValidation::analyze(), MuonTrackValidator::analyze(), evf::FUEventProcessor::attachDqmToShm(), HLTTauDQMAutomation::AutoCompleteConfig(), HLTTauDQMAutomation::AutoCompleteMatching(), AlcaBeamMonitor::beginLuminosityBlock(), GeometricSearchTrackerBuilder::build(), FWTrackProxyBuilderFF::build(), MagGeoBuilderFromDDD::buildInterpolator(), CSCSectorReceiverLUT::calcGlobalPhiME(), edm::service::MessageServicePSetValidation::check(), PhysicsTools::ProcessRegistry< Base_t, CalibBase_t, Parent_t >::Factory::create(), sistrip::SpyUnpacker::createDigis(), sistrip::RawToDigiUnpacker::createDigis(), evf::FUEventProcessor::detachDqmFromShm(), TestFunct::DropItem(), FWModelChangeManager::endChanges(), FWFFLooper::endOfLoop(), EcalZmassClient::endRun(), exceptionTranslation(), cond::ExportIOVUtilities::execute(), sistrip::RawToClustersLazyUnpacker::fill(), SiStripMonitorPedestals::fillCondDBMEs(), NuclearVertexBuilder::FillVertexWithAdaptVtxFitter(), LaserAlignmentEventFilter::filter(), HLTTauDQMPlotter::FilterObject::FilterObject(), TrackerOfflineValidationSummary::fitResiduals(), TrackerOfflineValidation::fitResiduals(), edm::EventProcessor::forkProcess(), CSCSectorReceiverLUT::getGlobalEtaValue(), CSCSectorReceiverLUT::getGlobalPhiValue(), HcalO2OManager::getListOfPoolIovs(), HcalO2OManager::getListOfPoolTags(), TestFunct::GetMetadata(), SiStripConfigDb::handleException(), edm::MessageLoggerQ::handshakedCommand(), HLTTauDQMCaloPlotter::HLTTauDQMCaloPlotter(), HLTTauDQML1Plotter::HLTTauDQML1Plotter(), HLTTauDQMLitePathPlotter::HLTTauDQMLitePathPlotter(), HLTTauDQMPathPlotter::HLTTauDQMPathPlotter(), HLTTauDQMSummaryPlotter::HLTTauDQMSummaryPlotter(), HLTTauDQMTrkPlotter::HLTTauDQMTrkPlotter(), evf::iDie::initFramework(), stor::EventStreamSelector::initialize(), stor::EventConsumerSelector::initialize(), L1GtUtils::LogicalExpressionL1Results::initialize(), PhotonConversionTrajectorySeedProducerFromQuadrupletsAlgo::inspect(), SiPixelGainCalibrationOfflineService::isDead(), SiPixelGainCalibrationForHLTService::isDead(), SiPixelGainCalibrationService::isDead(), SiPixelGainCalibrationOfflineSimService::isDead(), SiPixelGainCalibrationForHLTSimService::isDead(), SiPixelGainCalibrationOfflineService::isDeadColumn(), SiPixelGainCalibrationForHLTService::isDeadColumn(), SiPixelGainCalibrationOfflineSimService::isDeadColumn(), SiPixelGainCalibrationForHLTSimService::isDeadColumn(), SiPixelGainCalibrationOfflineService::isNoisy(), SiPixelGainCalibrationForHLTService::isNoisy(), SiPixelGainCalibrationService::isNoisy(), SiPixelGainCalibrationOfflineSimService::isNoisy(), SiPixelGainCalibrationForHLTSimService::isNoisy(), SiPixelGainCalibrationOfflineService::isNoisyColumn(), SiPixelGainCalibrationForHLTService::isNoisyColumn(), SiPixelGainCalibrationOfflineSimService::isNoisyColumn(), SiPixelGainCalibrationForHLTSimService::isNoisyColumn(), main(), cond::BasePayloadProxy::make(), evf::FUEventProcessor::microState(), evf::iDie::postEntry(), evf::iDie::postEntryiChoke(), tfwliteselectortest::ThingsWorker::process(), tfwliteselectortest::ThingsTSelector::process(), cond::XMLAuthenticationService::XMLAuthenticationService::processFile(), HLTTauDQMOfflineSource::processPSet(), PhotonConversionTrajectorySeedProducerFromQuadruplets::produce(), HcalDigiToRaw::produce(), CastorDigiToRaw::produce(), HcalRawToDigi::produce(), CSCTFUnpacker::produce(), CastorRawToDigi::produce(), EcalDCCTBUnpackingModule::produce(), EcalDCCTB07UnpackingModule::produce(), sistrip::SpyEventSummaryProducer::produce(), sistrip::FEDEmulatorModule::produce(), TestFunct::Read(), TestFunct::ReadAll(), TestFunct::ReadWithIOV(), RecoProducerFP420::RecoProducerFP420(), sistrip::FEDEmulator::retrieveNoises(), sistrip::FEDEmulator::retrievePedestals(), cond::Utilities::run(), KalmanAlignmentAlgorithm::run(), edm::service::MessageLoggerScribe::runCommand(), FWPathsPopup::scheduleReloadEvent(), evf::FUEventProcessor::setAttachDqmToShm(), edm::convertException::stdToEDM(), evf::FUEventProcessor::stopClassic(), SiStripPedestalsSubtractor::subtract_(), TestFunct::Write(), DTCalibDBUtils::writeToDB(), and TestFunct::WriteWithIOV().

141  {
142  what_ = explainSelf();
143  return what_.c_str();
144  }
virtual std::string explainSelf() const
Definition: Exception.cc:146
std::string what_
Definition: Exception.h:210

Friends And Related Function Documentation

template<typename E , typename T >
detail::Desired<E, detail::is_derived_or_same<Exception,E>::value>::type& operator<< ( E &  e,
T const &  stuff 
)
friend

Definition at line 229 of file Exception.h.

230  {
231  e.ost_ << stuff;
232  return e;
233  }
template<typename E , typename T >
detail::Desired<E, detail::is_derived_or_same<Exception,E>::value>::type const& operator<< ( E const &  e,
T const &  stuff 
)
friend

Definition at line 238 of file Exception.h.

239  {
240  E& ref = const_cast<E&>(e);
241  ref.ost_ << stuff;
242  return e;
243  }
template<typename E >
detail::Desired<E, detail::is_derived_or_same<Exception,E>::value>::type& operator<< ( E &  e,
std::ostream &(*)(std::ostream &)  f 
)
friend

Definition at line 248 of file Exception.h.

249  {
250  f(e.ost_);
251  return e;
252  }
double f[11][100]
template<typename E >
detail::Desired<E, detail::is_derived_or_same<Exception,E>::value>::type const& operator<< ( E const &  e,
std::ostream &(*)(std::ostream &)  f 
)
friend

Definition at line 257 of file Exception.h.

258  {
259  E& ref = const_cast<E&>(e);
260  f(ref.ost_);
261  return e;
262  }
double f[11][100]
template<typename E >
detail::Desired<E, detail::is_derived_or_same<Exception,E>::value>::type& operator<< ( E &  e,
std::ios_base &(*)(std::ios_base &)  f 
)
friend

Definition at line 267 of file Exception.h.

268  {
269  f(e.ost_);
270  return e;
271  }
double f[11][100]
template<typename E >
detail::Desired<E, detail::is_derived_or_same<Exception,E>::value>::type const& operator<< ( E const &  e,
std::ios_base &(*)(std::ios_base &)  f 
)
friend

Definition at line 277 of file Exception.h.

278  {
279  E& ref = const_cast<E&>(e);
280  f(ref.ost_);
281  return e;
282  }
double f[11][100]

Member Data Documentation

std::list<std::string> cms::Exception::additionalInfo_
private
bool cms::Exception::alreadyPrinted_
private

Definition at line 213 of file Exception.h.

Referenced by alreadyPrinted(), setAlreadyPrinted(), and swap().

std::string cms::Exception::category_
private

Definition at line 209 of file Exception.h.

Referenced by category(), explainSelf(), history(), and swap().

std::list<std::string> cms::Exception::context_
private

Definition at line 211 of file Exception.h.

Referenced by addContext(), clearContext(), context(), explainSelf(), setContext(), and swap().

std::ostringstream cms::Exception::ost_
private

Definition at line 208 of file Exception.h.

Referenced by append(), clearMessage(), Exception(), explainSelf(), init(), message(), and swap().

std::string cms::Exception::what_
mutableprivate

Definition at line 210 of file Exception.h.

Referenced by swap(), and what().