OK, forget the second statement, the first one still is a valid one. If you
follow the standard you have to throw a checked exception when something
goes wrong but you expect that to happen. Like a violated FK in the DB.

On Tue, Jul 26, 2011 at 3:23 AM, Zsolt Vasvari <[email protected]> wrote:

> > A checked exception is an exceptional state that you expect to happen,
> like
> > the user entering some wrong values, you check that ant throw the ckecked
> > exception.
>
> No, exceptions shouldn't be used as a program flow control mechanism,
> which is what your example is.
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to