remote faults
Robert Olson
olson at mcs.anl.gov
Tue May 27 10:32:27 CDT 2003
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