ATLAS Offline Software
Public Member Functions | Public Attributes | List of all members
python.trferr.TransformError Class Reference
Inheritance diagram for python.trferr.TransformError:
Collaboration diagram for python.trferr.TransformError:

Public Member Functions

def __init__ (self, message=None, error='TRF_UNKNOWN', **kwargs)
 
def __str__ (self)
 
def setError (self, error)
 
def setMessage (self, message)
 

Public Attributes

 message
 
 error
 
 extras
 
 args
 

Detailed Description

Base class for PyJobTransform Exception classes

Definition at line 5 of file trferr.py.

Constructor & Destructor Documentation

◆ __init__()

def python.trferr.TransformError.__init__ (   self,
  message = None,
  error = 'TRF_UNKNOWN',
**  kwargs 
)

Reimplemented in python.trferr.TransformConfigError.

Definition at line 7 of file trferr.py.

7  def __init__(self,message=None,error='TRF_UNKNOWN',**kwargs):
8  Exception.__init__(self,error,message)
9  self.message = message
10  self.error = error
11  self.extras = kwargs
12 

Member Function Documentation

◆ __str__()

def python.trferr.TransformError.__str__ (   self)

Definition at line 13 of file trferr.py.

13  def __str__(self):
14  header = '%s: ' % self.error
15  msg = header + self.message
16  indent = os.linesep + ' '*len(header)
17  for n,v in self.extras.items():
18  msg += '%s%s=%s' % (indent,n,v)
19  return msg
20 

◆ setError()

def python.trferr.TransformError.setError (   self,
  error 
)

Definition at line 21 of file trferr.py.

21  def setError(self,error):
22  self.error = error
23  self.args = (self.error,self.message)
24 

◆ setMessage()

def python.trferr.TransformError.setMessage (   self,
  message 
)

Definition at line 25 of file trferr.py.

25  def setMessage(self,message):
26  self.message = message
27  self.args = (self.error,self.message)
28 
29 

Member Data Documentation

◆ args

python.trferr.TransformError.args

Definition at line 23 of file trferr.py.

◆ error

python.trferr.TransformError.error

Definition at line 10 of file trferr.py.

◆ extras

python.trferr.TransformError.extras

Definition at line 11 of file trferr.py.

◆ message

python.trferr.TransformError.message

Definition at line 9 of file trferr.py.


The documentation for this class was generated from the following file:
TrigJetMonitorAlgorithm.items
items
Definition: TrigJetMonitorAlgorithm.py:79
python.processes.powheg.ZZ.ZZ.__init__
def __init__(self, base_directory, **kwargs)
Constructor: all process options are set here.
Definition: ZZ.py:18