Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
cetlib
cetlib
detail
wrapLibraryManagerException.cc
Go to the documentation of this file.
1
#include "
cetlib/detail/wrapLibraryManagerException.h
"
2
#include "cetlib_except/exception.h"
3
4
void
5
cet::detail::wrapLibraryManagerException
(
cet::exception
const
&
e
,
6
std::string
const
& item_type,
7
std::string
const
& libspec,
8
std::string
const
&
release
)
9
{
10
if
(e.category() ==
"LogicError"
) {
11
// Re-throw.
12
throw
;
13
}
else
{
14
// Wrap and throw.
15
throw
exception
(
"Configuration"
,
std::string
(
"Unknown"
) + item_type, e)
16
<< item_type +
" "
<< libspec <<
" with version "
<< release
17
<<
" was not registered.\n"
18
<<
"Perhaps your plugin type is misspelled "
19
<<
"or is not a plugin recognized by this\n"
20
<<
"system.\n"
;
21
}
22
}
string
std::string string
Definition:
nybbler.cc:12
wrapLibraryManagerException.h
e
const double e
Definition:
gUpMuFluxGen.cxx:165
conf.release
string release
Definition:
conf.py:24
cet::detail::wrapLibraryManagerException
void wrapLibraryManagerException(cet::exception const &e, std::string const &item_type, std::string const &libspec, std::string const &release)
Definition:
wrapLibraryManagerException.cc:5
fhicl::exception
cet::coded_exception< error, detail::translate > exception
Definition:
exception.h:33
Generated by
1.8.11