List Info

Thread: quickstarter / storeToURL problem (python)




quickstarter / storeToURL problem (python)
user name
2006-01-23 22:15:08
Hi,


>>  
>>
> Clement wrote I should try:
> Except Exception, e:
>    print str(e)
> 
> But this only showed me, that apparently the ErrCode is
not accessible 
> in Python. e was an empty string :/
don't think so.

If you write

except ErrorCodeIOException, e:
	print str(e)

e can't be an empty string, because e must be an instance of

ErrorCodeIOException or a derived class, otherwise the
except cannot 
succeed. Please check this again.

Bye,

Joerg

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeapi.openoffice.org
For additional commands, e-mail: dev-helpapi.openoffice.org

quickstarter / storeToURL problem (python)
user name
2006-01-24 12:44:04
Hello!

> If you write
>
> except ErrorCodeIOException, e:
>     print str(e)
>
> e can't be an empty string, because e must be an
instance of 
> ErrorCodeIOException or a derived class, otherwise the
except cannot 
> succeed. Please check this again.


I tried this:
"print 'errcode = ', str(e)"
and believe me or not, I got this:
"errcode =  "

When I tried to load "e" into my debugger to watch
it, my entire python 
died.
However, I could
"print e.ErrCode"
and got "2074" as the answer. Is there some place,
where I can look up 
what this means?

Thanks again!
Daniela


------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeapi.openoffice.org
For additional commands, e-mail: dev-helpapi.openoffice.org

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )