Add ParseException constructors to API

ParseException constructors are used by both platform and mainline
module code, so they can't be package-private.
Removing dependencies on either side is not possible as the class
itself is part of the public API, and supports APIs on both sides.

Having the constructors part of the API makes the class usable by both
sides.

Fixes: 182705505
Test: CtsNetTestCases for APIs using the exception
Change-Id: Ia396ab2fa3afaed3cf474c8e60f72fc7f3f4fded
This commit is contained in:
Remi NGUYEN VAN
2021-03-15 10:20:40 +09:00
parent 7e9e7dce89
commit 25dcabf72d
2 changed files with 12 additions and 2 deletions

View File

@@ -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;