java - how to design the code for catching a certain exception in a API interface util class -


i'm facing problem need add handling exception when calling third part api. serviceutilshelper managers connection issue. getaccesinterface() return instance used call api geta(),getb(). want adding catch exception @ calling geta(), getb() more getc().and try call again. problem how make code keep clean? thanks!

code piece:

public list<string> geta(parameter arg) throws xxserviceexception{      return serviceutilshelper.getaccessinterface().geta(arg); }  public list<string> getb(parameter arg) throws xxserviceexception {      return serviceutilshelper.getaccessinterface().getb(arg); } 


Comments

Popular posts from this blog

Python Kivy ListView: How to delete selected ListItemButton? -

asp.net mvc 4 - A specified Include path is not valid. The EntityType '' does not declare a navigation property with the name '' -