Merge "Throw an explicit ImsException if the ImsService isnt available"

This commit is contained in:
Brad Ebinger
2022-02-17 21:27:47 +00:00
committed by Android (Google) Code Review

View File

@@ -497,6 +497,8 @@ public class ImsRcsManager {
try {
return imsRcsController.isCapable(mSubId, capability, radioTech);
} catch (ServiceSpecificException e) {
throw new ImsException(e.getMessage(), e.errorCode);
} catch (RemoteException e) {
Log.w(TAG, "Error calling IImsRcsController#isCapable", e);
throw new ImsException("Remote IMS Service is not available",
@@ -534,6 +536,8 @@ public class ImsRcsManager {
try {
return imsRcsController.isAvailable(mSubId, capability, radioTech);
} catch (ServiceSpecificException e) {
throw new ImsException(e.getMessage(), e.errorCode);
} catch (RemoteException e) {
Log.w(TAG, "Error calling IImsRcsController#isAvailable", e);
throw new ImsException("Remote IMS Service is not available",