CMS 3D CMS Logo

Throw.cc
Go to the documentation of this file.
3 #include <ostream>
4 #include <cstring>
5 
6 void throwStorageError(const char *category, const char *context, const char *call, int error) {
8  ex << call << " failed with system error '" << strerror(error) << "' (error code " << error << ")";
9  ex.addContext(context);
10  throw ex;
11 }
12 
13 void throwStorageError(edm::errors::ErrorCodes category, const char *context, const char *call, int error) {
15  ex << call << " failed with system error '" << strerror(error) << "' (error code " << error << ")";
16  ex.addContext(context);
17  throw ex;
18 }
taus_updatedMVAIds_cff.category
category
Definition: taus_updatedMVAIds_cff.py:30
cms::Exception::addContext
void addContext(std::string const &context)
Definition: Exception.cc:165
edm::errors::ErrorCodes
ErrorCodes
Definition: EDMException.h:22
relativeConstraints.error
error
Definition: relativeConstraints.py:53
edm::Exception
Definition: EDMException.h:77
throwStorageError
void throwStorageError(const char *category, const char *context, const char *call, int error)
Definition: Throw.cc:6
Exception.h
cms::Exception
Definition: Exception.h:70
Throw.h