CMS 3D CMS Logo

Functions
Throw.cc File Reference
#include "Utilities/StorageFactory/src/Throw.h"
#include "FWCore/Utilities/interface/Exception.h"
#include <ostream>
#include <cstring>

Go to the source code of this file.

Functions

void throwStorageError (const char *category, const char *context, const char *call, int error)
 
void throwStorageError (edm::errors::ErrorCodes category, const char *context, const char *call, int error)
 

Function Documentation

◆ throwStorageError() [1/2]

void throwStorageError ( const char *  category,
const char *  context,
const char *  call,
int  error 
)

◆ throwStorageError() [2/2]

void throwStorageError ( edm::errors::ErrorCodes  category,
const char *  context,
const char *  call,
int  error 
)

Definition at line 13 of file Throw.cc.

13  {
15  ex << call << " failed with system error '" << strerror(error) << "' (error code " << error << ")";
16  ex.addContext(context);
17  throw ex;
18 }

References cms::Exception::addContext(), taus_updatedMVAIds_cff::category, and relativeConstraints::error.

taus_updatedMVAIds_cff.category
category
Definition: taus_updatedMVAIds_cff.py:30
relativeConstraints.error
error
Definition: relativeConstraints.py:53
edm::Exception
Definition: EDMException.h:77
cms::Exception
Definition: Exception.h:70