Hi Methods in ExecutionListenerExtension does not throw any exception. So you can catch the exception and throw the error as RuntimeException
Thanks, Nuwanw On Thu, Dec 18, 2014 at 12:20 PM, Ayesha Dissanayaka <[email protected]> wrote: > > Can I throw http://testng.org/javadoc/org/testng/TestNGException.html for > $subject? > > On Thu, Dec 18, 2014 at 11:57 AM, Ayesha Dissanayaka <[email protected]> > wrote: >> >> Hi , >> >> I have introduced an extentionClass extending ExecutionListenerExtension. >> I if I am to throw a exception such as *IOException* and >> *MalformedURLException* caught in this implementation to upper level, >> what should be the specific higher level exception instance I should throw? >> >> Thanks! >> -Ayesha >> >> -- >> *Ayesha Dissanayaka* >> Software Engineer, >> WSO2, Inc : http://wso2.com >> <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg> >> 20, Palmgrove Avenue, Colombo 3 >> E-Mail: [email protected] <[email protected]> >> > > > -- > *Ayesha Dissanayaka* > Software Engineer, > WSO2, Inc : http://wso2.com > <http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg> > 20, Palmgrove Avenue, Colombo 3 > E-Mail: [email protected] <[email protected]> > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Nuwan Wimalasekara Senior Software Engineer - Test Automation WSO2, Inc.: http://wso2.com lean. enterprise. middleware phone: +94 71 668 4620
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
