View Single Post
  #1 (permalink)  
Old October 21st, 2010, 07:31 PM
crustymonkey crustymonkey is offline
Registered User
 
Join Date: Oct 2010
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Unhappy Earthquake Content Provider Chapter 7

This is driving me crazy. I just finished up the ContentProvider portion of the Earthquake example in Chapter 7 and this won't build because Eclipse is apparently being stupid.

Eclipse has marked this line:

Code:
throw new SQLException("Could not insert row into " + uri);
in EarthquakeProvider.insert() as an error and refuses to build. Page 234 near the bottom. It's saying that it's an "Uncaught exception" and wants me to put a try, catch block around it. This is ridiculous and I can't seem to find a way to tell Eclipse to ignore this and run the damn application.

So, 2 parts here.
  1. Can someone help me tell Eclipse to go F itself and ignore the fact that the exception is not handled?
  2. Is this the proper behavior for this method? Should I actually return null instead?

Thanks in advance for any help you can offer.
Reply With Quote