Merge "Add ParseException constructors to API"
This commit is contained in:
@@ -25,6 +25,11 @@ package android.net {
|
|||||||
field public static final int TRANSPORT_TEST = 7; // 0x7
|
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 {
|
public final class TcpRepairWindow {
|
||||||
ctor public TcpRepairWindow(int, int, int, int, int, int);
|
ctor public TcpRepairWindow(int, int, int, int, int, int);
|
||||||
field public final int maxWindow;
|
field public final int maxWindow;
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
package android.net;
|
package android.net;
|
||||||
|
|
||||||
import android.annotation.NonNull;
|
import android.annotation.NonNull;
|
||||||
|
import android.annotation.SystemApi;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Thrown when parsing failed.
|
* Thrown when parsing failed.
|
||||||
@@ -25,12 +26,16 @@ import android.annotation.NonNull;
|
|||||||
public class ParseException extends RuntimeException {
|
public class ParseException extends RuntimeException {
|
||||||
public String response;
|
public String response;
|
||||||
|
|
||||||
ParseException(@NonNull String response) {
|
/** @hide */
|
||||||
|
@SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
|
||||||
|
public ParseException(@NonNull String response) {
|
||||||
super(response);
|
super(response);
|
||||||
this.response = 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);
|
super(response, cause);
|
||||||
this.response = response;
|
this.response = response;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user