CMS 3D CMS Logo

Typedefs | Functions
DQMError.h File Reference
#include <stdexcept>
#include "FWCore/Utilities/interface/EDMException.h"

Go to the source code of this file.

Typedefs

using DQMError = cms::Exception
 

Functions

void raiseDQMError (const char *context, const char *fmt,...)
 

Typedef Documentation

Definition at line 7 of file DQMError.h.

Function Documentation

void raiseDQMError ( const char *  context,
const char *  fmt,
  ... 
)

Definition at line 11 of file DQMError.cc.

References writedatasetfile::args.

Referenced by MonitorElement::accessRootObject(), DQMHistNormalizer::buildRegex(), DQMStore::cd(), DQMStore::cdInto(), checkRootObject(), MonitorElement::copyFunctions(), DQMStore::createQTest(), DQMOldReceiver::doMonitoring(), fastmatch::fastmatch(), DQMStore::findObject(), DQMStore::get_info(), MonitorElement::getAxis(), DQMStore::getMatchingContents(), MonitorElement::incompatible(), MonitorElement::initialise(), DQMStore::makeDirectory(), DQMStore::readDirectory(), DQMStore::readFile(), DQMStore::readFilePB(), QCriterion::runTest(), DQMStore::save(), DQMNet::startLocalServer(), DQMStore::tag(), DQMOldReceiver::update(), DQMStore::useQTest(), and DQMStore::useQTestByMatch().

12 {
13  va_list args;
14  char *message = nullptr;
15 
16  va_start(args, fmt);
17  vasprintf(&message, fmt, args);
18  va_end(args);
19 
20 #if WITHOUT_CMS_FRAMEWORK
21  char *final = nullptr;
22  asprintf(&final, "%s: %s", context, message ? message : FAILED);
23  std::runtime_error err(final ? final : FAILED);
24  free(final);
25 #else
26  cms::Exception err(context);
27  if (message)
28  err << message;
29 #endif
30 
31  free(message);
32  throw err;
33 }