This might be a ridiculous Java question about exception handling, but I have a user interface (Android activity) that is requesting services from my ContentProvider subclass. The subclass wants to throw some exceptions when the sd card is full, there is no sd card, network I / O errors, etc. However, when I code a CP subclass to exclude my exceptions, the compiler suggests adding exceptions for the CP class. Obviously, I don't want to change the base class, but I want the user interface to detect exceptions for the subclass.
Make sense? Is it possible? If not, is there a better template for my service subclass to return its return object back to the user interface?
source
share