diff --git a/src/main/java/org/gitlab/api/http/GitlabHTTPRequestor.java b/src/main/java/org/gitlab/api/http/GitlabHTTPRequestor.java index e63d180e..e12dc6c6 100644 --- a/src/main/java/org/gitlab/api/http/GitlabHTTPRequestor.java +++ b/src/main/java/org/gitlab/api/http/GitlabHTTPRequestor.java @@ -24,7 +24,6 @@ import org.gitlab.api.GitlabAPI; import org.gitlab.api.GitlabAPIException; import org.gitlab.api.TokenType; -import org.gitlab.api.models.GitlabCommit; /** * Gitlab HTTP Requestor @@ -121,7 +120,7 @@ public GitlabHTTPRequestor with(String key, Object value) { * Has a fluent api for method chaining * * @param key Form parameter Key - * @param value Form parameter Value + * @param file File data * @return this */ public GitlabHTTPRequestor withAttachment(String key, File file) { @@ -208,7 +207,7 @@ public Iterator asIterator(final String tailApiUrl, final Class type) try { url = root.getAPIUrl(tailApiUrl); } catch (IOException e) { - throw new Error(e); + throw new RuntimeException(e); } } @@ -260,7 +259,7 @@ private void fetch() { handleAPIError(e, connection); } } catch (IOException e) { - throw new Error(e); + throw new RuntimeException(e); } }