Main Page
Namespaces
Classes
Package Documentation
Utilities
StorageFactory
src
Throw.cc
Go to the documentation of this file.
1
#include "
Utilities/StorageFactory/src/Throw.h
"
2
#include "
FWCore/Utilities/interface/Exception.h
"
3
#include <ostream>
4
#include <cstring>
5
6
void
7
throwStorageError
(
const
char
*
category
,
8
const
char
*context,
9
const
char
*call,
int
error
)
10
{
11
cms::Exception
ex(category);
12
ex << call <<
" failed with system error '"
13
<< strerror (error) <<
"' (error code "
<< error <<
")"
;
14
ex.
addContext
(context);
15
throw
ex;
16
}
17
18
void
19
throwStorageError
(
edm::errors::ErrorCodes
category
,
20
const
char
*context,
21
const
char
*call,
int
error
)
22
{
23
edm::Exception
ex(category);
24
ex << call <<
" failed with system error '"
25
<< strerror (error) <<
"' (error code "
<< error <<
")"
;
26
ex.
addContext
(context);
27
throw
ex;
28
}
Throw.h
throwStorageError
void throwStorageError(const char *category, const char *context, const char *call, int error)
Definition:
Throw.cc:7
relativeConstraints.error
error
Definition:
relativeConstraints.py:52
edm::errors::ErrorCodes
ErrorCodes
Definition:
EDMException.h:23
python.rootplot.argparse.category
category
Definition:
argparse.py:131
edm::Exception
Definition:
EDMException.h:73
Exception.h
cms::Exception
Definition:
Exception.h:67
cms::Exception::addContext
void addContext(std::string const &context)
Definition:
Exception.cc:227
Generated for CMSSW Reference Manual by
1.8.11