All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pubsdeadenderror.py
Go to the documentation of this file.
1 #! /usr/bin/env python
2 ######################################################################
3 #
4 # Name: pubsdeadenderror.py
5 #
6 # Purpose: Python class PubsDeadEndError (exception class).
7 # This exception is raised if input is permanently 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 # PubsDeadEndError class.
18 
19 class PubsDeadEndError(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 permanently unavailable for run %d, subrun %d, version %d.' % (
29  self.run, self.subrun, self.version)