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:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user