CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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) {
7  cms::Exception ex(category);
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) {
14  edm::Exception ex(category);
15  ex << call << " failed with system error '" << strerror(error) << "' (error code " << error << ")";
16  ex.addContext(context);
17  throw ex;
18 }
void throwStorageError(const char *category, const char *context, const char *call, int error)
Definition: Throw.cc:6
static const char category[]
void addContext(std::string const &context)
Definition: Exception.cc:165