diff options
author | Maurice Laveaux <m.laveaux@student.tue.nl> | 2014-05-22 14:47:03 +0200 |
---|---|---|
committer | Maurice Laveaux <m.laveaux@student.tue.nl> | 2014-05-22 14:47:03 +0200 |
commit | 2b2a47a0086eab52b09e5425e75cafb488e51074 (patch) | |
tree | 5ea244f904d4a9ce9855133ec3df4f06f8b7c95a /src/io/Requester.java | |
parent | b318cc755befd04f711c03f927789fc8c1a72216 (diff) | |
download | TwitterDataAnalytics-2b2a47a0086eab52b09e5425e75cafb488e51074.tar.gz |
Updated the Requesters to throw RateLimitException.
* The exception contains the reset timestamp in unix time.
Diffstat (limited to 'src/io/Requester.java')
-rw-r--r-- | src/io/Requester.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/io/Requester.java b/src/io/Requester.java index 3dd09f3..11e0bb1 100644 --- a/src/io/Requester.java +++ b/src/io/Requester.java @@ -20,8 +20,9 @@ public interface Requester { * @param resource The REST resource. * @return A JSON object resulting from the request. * @throws java.io.IOException on error fetching the resource. + * @throws io.RateLimitException on ratelimit errors. */ - public Response getJSON(String resource) throws IOException; + public Response getJSON(String resource) throws IOException, RateLimitException; /** * Tests whether this instance can dispatch requests. |