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:
parent
1bbbd79a8c
commit
b341070860
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue