logo       

Re: distinguishing between failures and errors: msg#00128

java.junit.user

Subject: Re: distinguishing between failures and errors

J. B. Rainsberger wrote:

>
>What fear are you addressing by using checked exceptions? Since it is
>possible to get along without them, you may be afraid of something in order
>to want to use them. What might that be? (Please help me; I sound like Ron.)
>

The fear that the next person to look at my code won't know what
application-level exceptions can possibly be raised.

I can mitigate that fear by writing tests that demonstrate which
exceptions can be raised and under what circumstances that can happen.

I can eliminate that fear using checked exceptions.

Mike




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise