Skip to content

Commit 9d94325

Browse files
Merge pull request #465 from maniax89/service_call_throw
Throw unchecked exception in ServiceCall interface
2 parents a8812ba + 5429f7e commit 9d94325

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

core/src/main/java/com/ibm/watson/developer_cloud/http/ServiceCall.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ public interface ServiceCall<T> {
2525
* Synchronous request.
2626
*
2727
* @return the generic type
28+
* @throws RuntimeException the exception from HTTP request
2829
*/
29-
T execute();
30+
T execute() throws RuntimeException;
3031

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

0 commit comments

Comments
 (0)