Class to handle API call issues