Skip to content

Commit 5429f7e

Browse files
committed
📝 Throw unchecked exception in ServiceCall interface
1 parent a8812ba commit 5429f7e

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)