forked from apache/hadoop
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
review refactors: apachehttpclient (#17)
pr: #17
- Loading branch information
1 parent
bdbbd5d
commit 9f83f90
Showing
27 changed files
with
833 additions
and
869 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...c/main/java/org/apache/hadoop/fs/azurebfs/contracts/exceptions/HttpResponseException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package org.apache.hadoop.fs.azurebfs.contracts.exceptions; | ||
|
||
import java.io.IOException; | ||
import java.util.Objects; | ||
|
||
import org.apache.http.HttpResponse; | ||
|
||
/** | ||
* Encapsulates an exception thrown from ApacheHttpClient response parsing. | ||
*/ | ||
public class HttpResponseException extends IOException { | ||
protected final HttpResponse httpResponse; | ||
public HttpResponseException(final String s, final HttpResponse httpResponse) { | ||
super(s); | ||
Objects.requireNonNull(httpResponse, "httpResponse should be non-null"); | ||
this.httpResponse = httpResponse; | ||
} | ||
|
||
public HttpResponse getHttpResponse() { | ||
return httpResponse; | ||
} | ||
} |
Oops, something went wrong.