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:
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.
- Can someone help me tell Eclipse to go F itself and ignore the fact that the exception is not handled?
- Is this the proper behavior for this method? Should I actually return null instead?
Thanks in advance for any help you can offer.