🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #7298

Re: firing a property veto exception

#7298
From: John McGrath TeamB
Date: Sun, 01 Jul 2001 05:54
20 lines
1666 bytes
On Sat, 30 Jun 2001 19:42:13 -0400, "CLG" <lamont_gilbert @ 
rigidsoftware.com> wrote:

> well ok, im breakin tradition.  Here, I am given a value I dont
> like, so I am firing the change veto myself.  So  I have  actually
> not created the change event  yet.   maybe  this  is  wrong,  maybe
> i should just  fire  an illegal argument exception?

That is the problem.  You have been using the VetoException in a 
context that it is not intended to be used.  I think it would be
very reasonable to use an IllegalArgumentException in this case.

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <MPG.15a88507a857f0d698a310@forums.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!128.230.129.106!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews
References: <3b3cee8f$1_2@dnews> <3b3da103_1@dnews> <3b3e0880$1_2@dnews> <MPG.15a81c058ddd641098a30c@forums.borland.com> <3b3e64e1_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,e79ac2a4b52682c7
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-06-30 23:03:07 PST
From: John McGrath  [TeamB] <ng-b@JPMcGrath.net>
Newsgroups: borland.public.jbuilder.java.language
Subject: Re: firing a property veto exception
Date: Sun, 1 Jul 2001 01:54:00 -0400
Message-ID: <MPG.15a88507a857f0d698a310@forums.borland.com>
References: <3b3cee8f$1_2@dnews> <3b3da103_1@dnews> <3b3e0880$1_2@dnews> <MPG.15a81c058ddd641098a30c@forums.borland.com> <3b3e64e1_2@dnews>
X-Newsreader: MicroPlanet Gravity v2.30
NNTP-Posting-Host: 209.92.40.60
X-Trace: dnews 993966839 209.92.40.60 (30 Jun 2001 22:53:59 -0700)
Lines: 20
X-Authenticated-User: jpmcgrath
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!news.tele.dk!128.230.129.106!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews