Archaeopteryx Software, Inc.
Take Flight!Search

Home
Wing IDE
News
Support
About Us
Python
Open Source
Store

 Search:
 
 Advanced Search




[wingide-users] WEP: raises(Exception1, 2, 3, ...)

F. GEIGER fgeiger@datec.at
Sat, 3 Nov 2001 11:25:38 +0100


Wouldn't it be fine, if the Source Browser could show all the exceptions a
method might raise?

Example:

----

def yourMethod(self, x, y, z):
   if not ...:
      raise ValueError
   else:
      :
      :

def myMethod(self):
   :
   :
   abc = o.yourMethod(1, 2, 3)
   if not abc:
      raise MyException
   :
   :
   return

----

This would show up in the SB like so:

YourClass
   __init__ ...
   yourMethod ... (raises: ValueError)

MyClass
   __ini__ ...
   myMethod ... (raises: ValueError, MyException)


Is this feasible? Don't get me wrong: There is no need for a compiler-like
"Error: #98758725 - You did not catch exception 'ValueError' in
'MyClass.myMethod'"
"Error: #98758725 - You did not catch exception 'MyException' in
'HisClass.blabla'"!
It would be just an aid in finding all those exceptions burried in all the
layers of a program.

What do you think?


Best regards
Franz GEIGER



--------------------------------------------------------
DATEC Datentechnik GmbH
	Software Development
	Retrieval Computing
A-6890 LUSTENAU, Schmiedgasse 7
Tel	+43 5577 630 04-0
Fax	+43 5577 630 04-40
Mobile
	+43 664 214 57 43
E-Mail
	fgeiger@datec.at
WWW	www.datec.at (in Partnerschaft mit Amazon.de)








Run by Mailman v 2.0.8


Copyright (c) 2000-2002, Archaeopteryx Software, Inc.
Legal Statements