package com.infonuascape.osrshelper.tracker.rt;

import com.infonuascape.osrshelper.tracker.TrackerTimeEnum;
import com.infonuascape.osrshelper.utils.exceptions.ParserErrorException;
import com.infonuascape.osrshelper.utils.exceptions.PlayerNotFoundException;
import com.infonuascape.osrshelper.utils.players.PlayerSkills;

public class TrackerHelper {
	String userName = null;

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserName() {
		return userName;
	}

	public PlayerSkills getPlayerStats() throws PlayerNotFoundException, ParserErrorException {
		TrackerFetcher tf = new TrackerFetcher(getUserName(), TrackerTimeEnum.TrackerTime.Day);
		return tf.getPlayerTracker();
	}

	public PlayerSkills getPlayerStats(TrackerTimeEnum.TrackerTime time) throws PlayerNotFoundException,
			ParserErrorException {
		TrackerFetcher tf = new TrackerFetcher(getUserName(), time);
		return tf.getPlayerTracker();
	}

}

@@ -102,16 +102,78 @@
 meEnum;%0A
+import com.infonuascape.osrshelper.utils.exceptions.APIError;%0A
 import c
@@ -646,32 +646,42 @@
 erErrorException
+, APIError
  %7B%0A%09%09TrackerFetc
@@ -918,16 +918,26 @@
 xception
+, APIError
  %7B%0A%09%09Tra

Use APIError over ParseError to display proper errors