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
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
}
Throw.h
throwStorageError
void throwStorageError(const char *category, const char *context, const char *call, int error)
Definition:
Throw.cc:6
relativeConstraints.error
error
Definition:
relativeConstraints.py:53
edm::errors::ErrorCodes
ErrorCodes
Definition:
EDMException.h:22
edm::Exception
Definition:
EDMException.h:80
visDQMUpload.context
context
Definition:
visDQMUpload.py:30
Exception.h
cms::Exception
Definition:
Exception.h:70
cms::Exception::addContext
void addContext(std::string const &context)
Definition:
Exception.cc:165
validateAlignments.category
category
Definition:
validateAlignments.py:127
Generated for CMSSW Reference Manual by
1.8.14