This may be a Java question, or it may be an Eclipse question, I'm not positive.
I'm creating custom View in Android: HelpTextView extends View
I would like to override View.setVisibility()
, forcing calls to HelpTextView.setVisibility()
to be written inside try-catch (NullPointerException nex)
blocks.
I added both a throws declaration to the method (which is what I thought would do the trick) as well as a throw command but no luck. Is this not working because it's simply never going to work (perhaps overriding just doesn't work that way) or am I doing something wrong?