Re: [android-developers] WTH?
Because you're supposed to define that exception handling yourself, just
like the rest of it?
On 12/11/2012 1:31 PM, Larry Meadors wrote:
> This is in the android.test.ActivityUnitTestCase code:
>
> try{
> // do some stuff here to build the activity to test
> } catch (Exception e) {
> assertNotNull(newActivity);
> }
>
> Why isn't that exception logged, re-thrown, or even it's .toString()
> included in the assertion failure?
>
> IMO, this is a text book "How not to handle an error ever." example.
>
> Larry
>
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home