Better Excepetion propogation of custome impl

1 message, no reply - 559 views

Hi,

We see most of the interface methods for custom  extentions does not support exception throwing in methods. Would it not be a good approach to let these methods throw the exception so that they could be handled in a central place in an application.

Specially the kind of errors which could happen with j2me app could be very high and handling at the method impl.. may have big issues.

e.g are

    public Widget convertWidgetTag(final String aWidgetName)

should have been

    public Widget convertWidgetTag(final String aWidgetName) throws Exception

And also widgets

    protected void doLayout() ..

Kindly consider to let most of the interace methods to throw exception.. this would mean if the user wants to support with in method he could remove the exception from signature else allow the application writers to handle all the exceptions from central location.

Regards,
Raja Nagendra Kumar,
C.T.O
www.tejasoft.com
-A Competant, Reliable and Clean Code Java/JavaME/JavaEE Product Development Offshore Experts