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

ruby - How do I merge two hashes into a hash of arrays? -

c++ - Do gcc's __float128 floating point numbers take the current rounding mode into account? -