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
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user