gzz-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gzz] Re: [Gzz-commits] gzz ./TODO doc/Gzz_Frontend_Vobs.rst


From: Tuomas Lukka
Subject: [Gzz] Re: [Gzz-commits] gzz ./TODO doc/Gzz_Frontend_Vobs.rst
Date: Sun, 5 Jan 2003 14:34:18 +0200
User-agent: Mutt/1.4i

On Fri, Jan 03, 2003 at 09:47:59PM +0100, Benja Fallenstein wrote:
> Asko Soukka wrote:
> >Fri, 3 Jan 2003, Tuomas J. Lukka wrote:
> >
> >>    - enhancing umltool
> >>+       - make umltool rst loop not stop when an error
> >>+         in parsing the uml code is encountered -- for example,
> >>+         replace a "-" with a "--" in an association to get such
> >>+         an error.
> >
> >
> >:/ So, this throws on assertion error, which exits Jython.
> >
> >Benja, Vegai? Do you have any idea how this exiting can be avoided? 
> 
> try:
>     ...
> except AssertionError:
>     ...
> 
> OTOH, the idea is that assertion errors are raised when a method's 
> contract is violated, i.e. you assume that AssertionError will never be 
> raised when there are no bugs. Given this proper use of assertions, they 
> are the wrong construct here and if ...: raise FooError(msg) should be 
> used (where FooError is the exception class).

Yes, that's definitely right; the contract of umltool has not been
well thought out.

        Tuomas






reply via email to

[Prev in Thread] Current Thread [Next in Thread]