diff options
author | 2023-01-25 01:54:07 +0000 | |
---|---|---|
committer | 2023-01-26 00:25:39 +0000 | |
commit | 36b0ebe08cb1282435ceca056eec6fb8821b3606 (patch) | |
tree | 4517a6d983dc57942a1ec121cbd94ae28d3ce4e0 | |
parent | 40db8a184d634932adabed230634ddfc6df7701c (diff) |
Remove not necessary constructor of CallEndpointException
Some constructor in CallEndpointException are removed because the server side has no scenario to use.
CallEndpointException was introduced together with b/262452554 and it is used to report exceptions that can be occurred during change of CallEndpoint. But some constructor are not necessary because we can create it like CallEndpointController#getErrorResult.
bug: 264468307
Test: build and manual test
Change-Id: I24bc13b17d97c79f6c3b8fdce46ea7ac55c90f21
-rw-r--r-- | core/api/current.txt | 2 | ||||
-rw-r--r-- | telecomm/java/android/telecom/CallEndpointException.java | 13 |
2 files changed, 0 insertions, 15 deletions
diff --git a/core/api/current.txt b/core/api/current.txt index 7bdbd7b172c6..e659c21d4277 100644 --- a/core/api/current.txt +++ b/core/api/current.txt @@ -41476,9 +41476,7 @@ package android.telecom { } public final class CallEndpointException extends java.lang.RuntimeException implements android.os.Parcelable { - ctor public CallEndpointException(@Nullable String); ctor public CallEndpointException(@Nullable String, int); - ctor public CallEndpointException(@Nullable String, int, @Nullable Throwable); method public int describeContents(); method public int getCode(); method public void writeToParcel(@NonNull android.os.Parcel, int); diff --git a/telecomm/java/android/telecom/CallEndpointException.java b/telecomm/java/android/telecom/CallEndpointException.java index e223892847bc..994e1c9f9412 100644 --- a/telecomm/java/android/telecom/CallEndpointException.java +++ b/telecomm/java/android/telecom/CallEndpointException.java @@ -92,25 +92,12 @@ public final class CallEndpointException extends RuntimeException implements Par public @interface CallEndpointErrorCode { } - public CallEndpointException(@Nullable String message) { - super(getMessage(message, ERROR_UNSPECIFIED)); - mMessage = message; - } - public CallEndpointException(@Nullable String message, @CallEndpointErrorCode int code) { super(getMessage(message, code)); mCode = code; mMessage = message; } - public CallEndpointException(@Nullable String message, @CallEndpointErrorCode int code, - @Nullable Throwable cause) { - super(getMessage(message, code), cause); - mCode = code; - mMessage = message; - } - - public @CallEndpointErrorCode int getCode() { return mCode; } |