6 """Base class for PyJobTransform Exception classes"""
7 def __init__(self,message=None,error='TRF_UNKNOWN',**kwargs):
8 Exception.__init__(self,error,message)
14 header =
'%s: ' % self.
error
16 indent = os.linesep +
' '*len(header)
18 msg +=
'%s%s=%s' % (indent,n,v)
31 """Exception raised in case of an error in the transform configuration"""
32 def __init__(self,message=None,error='TRF_CONFIG',**kwargs):
33 TransformError.__init__(self,message,error,**kwargs)
37 """Exception raised in case a joboptions file can not be found"""
38 def __init__(self,filename,message=None,error='ATH_JOP_NOTFOUND'):
39 mess =
"JobOptions file %s not found" % filename
40 if message: mess +=
'. ' + message
41 TransformError.__init__(self,mess,error)