Set ParseException constructors as public
As there is no strong reason to keep the constructors module-lib, set them as public API. This is in response to API feedback. Fixes: 183446251 Test: m Change-Id: I01daa6f6f8095f7a4db94d1ca05f913166939df3
This commit is contained in:
@@ -17,7 +17,6 @@
|
||||
package android.net;
|
||||
|
||||
import android.annotation.NonNull;
|
||||
import android.annotation.SystemApi;
|
||||
|
||||
/**
|
||||
* Thrown when parsing failed.
|
||||
@@ -26,15 +25,11 @@ import android.annotation.SystemApi;
|
||||
public class ParseException extends RuntimeException {
|
||||
public String response;
|
||||
|
||||
/** @hide */
|
||||
@SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
|
||||
public ParseException(@NonNull String response) {
|
||||
super(response);
|
||||
this.response = response;
|
||||
}
|
||||
|
||||
/** @hide */
|
||||
@SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
|
||||
public ParseException(@NonNull String response, @NonNull Throwable cause) {
|
||||
super(response, cause);
|
||||
this.response = response;
|
||||
|
||||
Reference in New Issue
Block a user