remote faults

Robert Olson olson at mcs.anl.gov
Tue May 27 10:49:14 CDT 2003


Now we have this:

call raised fault  <Fault exceptions.NameError: NameError: global name 'y' is n
t defined
 >
faultcode='exceptions.NameError'
string='NameError: global name 'y' is not defined
'
detail='Traceback (most recent call last):
   File 
"C:\home\olson\ag\dev\h2\AccessGrid\AccessGrid\hosting\AccessControl.py"
  line 292, in __call__
     rc = self.callback(*args)
   File 
"C:\home\olson\ag\dev\h2\AccessGrid\AccessGrid\hosting\pyGlobus\tests\ts
rver.py", line 17, in meth
     x = y
NameError: global name 'y' is not defined
'

At 10:32 AM 5/27/2003 -0500, Robert Olson wrote:
>The following code:
>
>         print "call raised fault ", f
>         print "faultcode='%s'" % (f.faultcode)
>         print "string='%s'" % ( f.faultstring)
>         print "detail='%s'" % (f.detail)
>
>shows the following:
>
>call raised fault  <Fault : NameError: global name 'y' is not defined
> >
>faultcode=''
>string='NameError: global name 'y' is not defined
>'
>detail='Traceback (most recent call last):
>   File 
> "C:\home\olson\ag\dev\h2\AccessGrid\AccessGrid\hosting\AccessControl.py",
>  line 292, in __call__
>     rc = self.callback(*args)
>   File 
> "C:\home\olson\ag\dev\h2\AccessGrid\AccessGrid\hosting\pyGlobus\tests\tse
>rver.py", line 17, in meth
>     x = y
>NameError: global name 'y' is not defined
>'
>
>In other words, fault.faultstring is str(exception)  from the server side, 
>and detail is the traceback string.
>
>--bob




More information about the ag-dev mailing list