summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorRemi NGUYEN VAN <reminv@google.com>2021-03-16 06:25:16 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-03-16 06:25:16 +0000
commit9deb79f959b8459a1739f5bedfefac0e76a6b1d8 (patch)
tree3129bd74ef1bc0e2680cb687821646cc1e5c6210 /packages
parent03aeadc030634298cb1774963dbc02f239c291b5 (diff)
parent9f400b08d926b262cac99ca596dc196e8b79097e (diff)
Merge "Add ParseException constructors to API"
Diffstat (limited to 'packages')
-rw-r--r--packages/Connectivity/framework/api/module-lib-current.txt5
-rw-r--r--packages/Connectivity/framework/src/android/net/ParseException.java9
2 files changed, 12 insertions, 2 deletions
diff --git a/packages/Connectivity/framework/api/module-lib-current.txt b/packages/Connectivity/framework/api/module-lib-current.txt
index 4b3336644ef9..b04e248ca6fe 100644
--- a/packages/Connectivity/framework/api/module-lib-current.txt
+++ b/packages/Connectivity/framework/api/module-lib-current.txt
@@ -25,6 +25,11 @@ package android.net {
field public static final int TRANSPORT_TEST = 7; // 0x7
}
+ public class ParseException extends java.lang.RuntimeException {
+ ctor public ParseException(@NonNull String);
+ ctor public ParseException(@NonNull String, @NonNull Throwable);
+ }
+
public final class TcpRepairWindow {
ctor public TcpRepairWindow(int, int, int, int, int, int);
field public final int maxWindow;
diff --git a/packages/Connectivity/framework/src/android/net/ParseException.java b/packages/Connectivity/framework/src/android/net/ParseException.java
index bcfdd7ef09cc..ca6d012dfe7c 100644
--- a/packages/Connectivity/framework/src/android/net/ParseException.java
+++ b/packages/Connectivity/framework/src/android/net/ParseException.java
@@ -17,6 +17,7 @@
package android.net;
import android.annotation.NonNull;
+import android.annotation.SystemApi;
/**
* Thrown when parsing failed.
@@ -25,12 +26,16 @@ import android.annotation.NonNull;
public class ParseException extends RuntimeException {
public String response;
- ParseException(@NonNull String response) {
+ /** @hide */
+ @SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
+ public ParseException(@NonNull String response) {
super(response);
this.response = response;
}
- ParseException(@NonNull String response, @NonNull Throwable cause) {
+ /** @hide */
+ @SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
+ public ParseException(@NonNull String response, @NonNull Throwable cause) {
super(response, cause);
this.response = response;
}