#include <stdexcept>
#include "FWCore/Utilities/interface/EDMException.h"
Go to the source code of this file.
Typedefs | |
typedef cms::Exception | DQMError |
Functions | |
void | raiseDQMError (const char *context, const char *fmt,...) |
typedef cms::Exception DQMError |
Definition at line 7 of file DQMError.h.
void raiseDQMError | ( | const char * | context, |
const char * | fmt, | ||
... | |||
) |
Definition at line 11 of file DQMError.cc.
References harvestRelVal::args, evf::rb_statemachine::FAILED, and python::rootplot::argparse::message.
Referenced by MonitorElement::accessRootObject(), DQMHistNormalizer::buildRegex(), DQMStore::cd(), DQMStore::cdInto(), checkRootObject(), MonitorElement::copyFunctions(), DQMStore::createQTest(), DQMOldReceiver::doMonitoring(), fastmatch::fastmatch(), DQMStore::findObject(), MonitorElement::getAxis(), DQMStore::getMatchingContents(), MonitorElement::incompatible(), MonitorElement::initialise(), DQMStore::makeDirectory(), DQMStore::readDirectory(), DQMStore::readFile(), QCriterion::runTest(), DQMStore::save(), DQMNet::startLocalServer(), DQMStore::tag(), DQMOldReceiver::update(), DQMStore::useQTest(), and DQMStore::useQTestByMatch().
{ va_list args; char *message = 0; va_start(args, fmt); vasprintf(&message, fmt, args); va_end(args); #if WITHOUT_CMS_FRAMEWORK char *final = 0; asprintf(&final, "%s: %s", context, message ? message : FAILED); std::runtime_error err(final ? final : FAILED); free(final); #else cms::Exception err(context); if (message) err << message; #endif free(message); throw err; }