Main Page
Namespaces
Classes
Package Documentation
CVS Directory
WorkBook
Offline Guide
Release schedule
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
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
category
static const char category[]
Definition:
L3MuonCandidateProducer.cc:40
edm::errors::ErrorCodes
ErrorCodes
Definition:
EDMException.h:22
edm::Exception
Definition:
EDMException.h:77
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
relativeConstraints.error
tuple error
Definition:
relativeConstraints.py:56
Generated for CMSSW Reference Manual by
1.8.5