Skip to content

Commit b8e55a5

Browse files
author
Robert Henigan
authored
Merge pull request #1404 from smartdevicelink/feature/deprecate_rpc_onerror_listener
Deprecate onError for OnRPCResponseListener
2 parents 563a3a5 + 90260eb commit b8e55a5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

base/src/main/java/com/smartdevicelink/proxy/rpc/listeners/OnRPCResponseListener.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,16 @@ public void onStart(int correlationId){
7070
public abstract void onResponse(int correlationId, final RPCResponse response);
7171

7272
/**
73+
* @deprecated This method has been deprecated in favor of just using the onResponse callback. In the next
74+
* version this method will be removed and all responses successful or not will be returned
75+
* through the onResponse method callback.
76+
*
7377
* Called when there was some sort of error during the original request.
7478
* @param correlationId
7579
* @param resultCode
7680
* @param info
7781
*/
82+
@Deprecated
7883
public void onError(int correlationId, Result resultCode, String info){
7984

8085
};

0 commit comments

Comments
 (0)