added throws declaration for ParseException

git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@569634 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Roland Weber 2007-08-25 07:27:56 +00:00
parent 1bbbd79a8c
commit b341070860
1 changed files with 4 additions and 1 deletions

View File

@ -40,6 +40,7 @@ import java.util.Set;
import org.apache.http.Header;
import org.apache.http.HeaderElement;
import org.apache.http.HttpResponse;
import org.apache.http.ParseException;
/**
* HTTP OPTIONS method.
@ -82,7 +83,9 @@ public class HttpOptions extends HttpRequestBase {
return METHOD_NAME;
}
public Set getAllowedMethods(final HttpResponse response) {
public Set getAllowedMethods(final HttpResponse response)
throws ParseException {
if (response == null) {
throw new IllegalArgumentException("HTTP response may not be null");
}