Main Page
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Properties
_
a
c
d
e
f
l
m
o
p
s
t
u
v
+
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
FWCore
ParameterSet
python
ExceptionHandling.py
Go to the documentation of this file.
1
import
inspect
2
3
4
class
ConfigError
(
Exception
):
5
"""the most basic Error for CMS config"""
6
pass
7
8
9
class
ModuleCloneError
(
ConfigError
):
10
pass
11
12
13
def
format_outerframe
(number):
14
"""formats the outer frame 'number' to output like:
15
In file foo.py, line 8:
16
process.aPath = cms.Path(module1*module2)
17
18
'number' is the number of frames to go back relative to caller.
19
"""
20
frame = inspect.stack()[number+1]
#+1 because this routine adds another call
21
return
"In file %s, line %s:\n %s"
%(frame[1], frame[2], frame[4][0])
22
23
24
def
format_typename
(object):
25
"""format the typename and return only the last part"""
26
return
str
(type(object)).
split
(
"'"
)[1].
split
(
"."
)[-1]
ExceptionHandling.format_typename
def format_typename(object)
Definition:
ExceptionHandling.py:24
ExceptionHandling.format_outerframe
def format_outerframe(number)
Definition:
ExceptionHandling.py:13
ExceptionHandling.ConfigError
Definition:
ExceptionHandling.py:4
submitPVValidationJobs.split
def split(sequence, size)
Definition:
submitPVValidationJobs.py:352
Exception
str
#define str(s)
Definition:
TestProcessor.cc:56
ExceptionHandling.ModuleCloneError
Definition:
ExceptionHandling.py:9
Generated for CMSSW Reference Manual by
1.8.14