Expose constructor of Exceptions.

Exposing constructor of Exceptions for test purpose.

CTS-Coverage-Bug: 224059548
BUG: 215240597
BUG: 216368595
Test: build
Change-Id: I20af104a891e94873715ab46ecabc3e775638c8c
This commit is contained in:
sewookseo
2022-03-10 03:06:43 +00:00
parent edf80c2da8
commit e7c481452e
5 changed files with 18 additions and 9 deletions

View File

@@ -18,6 +18,8 @@ package android.net;
import android.annotation.SystemApi;
import com.android.internal.annotations.VisibleForTesting;
/**
* Thrown when the local address of the socket has changed.
*
@@ -25,7 +27,7 @@ import android.annotation.SystemApi;
*/
@SystemApi
public class SocketLocalAddressChangedException extends Exception {
/** @hide */
@VisibleForTesting
public SocketLocalAddressChangedException() {
super("The local address of the socket changed");
}