Skip to content

Commit

Permalink
Merge pull request #465 from maniax89/service_call_throw
Browse files Browse the repository at this point in the history
Throw unchecked exception in ServiceCall interface
  • Loading branch information
germanattanasio authored Oct 20, 2016
2 parents a8812ba + 5429f7e commit 9d94325
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ public interface ServiceCall<T> {
* Synchronous request.
*
* @return the generic type
* @throws RuntimeException the exception from HTTP request
*/
T execute();
T execute() throws RuntimeException;

/**
* Asynchronous requests, in this case, you receive a callback when the data has been received.
Expand Down

0 comments on commit 9d94325

Please sign in to comment.