Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
larbatch
python
pubsinputerror.py
Go to the documentation of this file.
1
#! /usr/bin/env python
2
######################################################################
3
#
4
# Name: pubsinputerror.py
5
#
6
# Purpose: Python class PubsInputError (exception class).
7
# This exception is raised if input is temporarily unavailable
8
# for a given (run, subrun, version) in pubs mode due to merging.
9
#
10
# Created: 22-May-2015 Herbert Greenlee
11
#
12
######################################################################
13
14
from
__future__
import
absolute_import
15
from
__future__
import
print_function
16
17
# PubsInputError class.
18
19
class
PubsInputError
(
Exception
):
20
21
def
__init__
(self, run, subrun, version):
22
self.
run
= run
23
self.
subrun
= subrun
24
self.
version
= version
25
return
26
27
def
__str__
(self):
28
return
'Input is not yet available for run %d, subrun %d, version %d.'
% (
29
self.
run
, self.
subrun
, self.
version
)
python.pubsinputerror.PubsInputError.__init__
def __init__(self, run, subrun, version)
Definition:
pubsinputerror.py:21
python.pubsinputerror.PubsInputError.subrun
subrun
Definition:
pubsinputerror.py:23
art::Exception
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition:
Exception.h:66
python.pubsinputerror.PubsInputError
Definition:
pubsinputerror.py:19
python.pubsinputerror.PubsInputError.__str__
def __str__(self)
Definition:
pubsinputerror.py:27
python.pubsinputerror.PubsInputError.version
version
Definition:
pubsinputerror.py:24
python.pubsinputerror.PubsInputError.run
run
Definition:
pubsinputerror.py:22
Generated by
1.8.11