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

php - Submit Form Data without Reloading page -

linux - Rails running on virtual machine in Windows -