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 
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)
def __init__(self, run, subrun, version)
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
Definition: Exception.h:66