forked from square/retrofit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request square#439 from adriancole/adrian.fix-423
Use ErrorHandler to coerce error responses during async invocations.
- Loading branch information
Showing
5 changed files
with
69 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ | |
package retrofit; | ||
|
||
/** | ||
* A hook allowing clients to customize error exceptions for synchronous requests. | ||
* A hook allowing clients to customize {@link retrofit.client.Response response} exceptions. | ||
* | ||
* @author Sam Beran [email protected] | ||
*/ | ||
|
@@ -41,8 +41,8 @@ public interface ErrorHandler { | |
* </pre> | ||
* | ||
* @param cause the original {@link RetrofitError} exception | ||
* @return Throwable an exception which will be thrown from the client interface method. Must not | ||
* be {@code null}. | ||
* @return Throwable an exception which will be thrown from a synchronous interface method or | ||
* passed to an asynchronous error callback. Must not be {@code null}. | ||
*/ | ||
Throwable handleError(RetrofitError cause); | ||
|
||
|
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