localizing exception handling to getResponse