p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   BOOK: Professional Android 2 Application Development (http://p2p.wrox.com/forumdisplay.php?f=547)
-   -   Earthquake Content Provider Chapter 7 (http://p2p.wrox.com/showthread.php?t=81343)

crustymonkey October 21st, 2010 07:31 PM

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:


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.

All times are GMT -4. The time now is 07:51 AM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.