DnsResolver: Make DnsException ctor public

Making the DnsException constructor public is useful for apps
using DnsResolver to write their tests, and for internal packages
that may want to implement the DnsResolver.Callback interface.

Test: for regression; CTS tests in b/208479811
Bug: 208464882
Change-Id: I14641688f53721c96e6df9596a7506912ba3aec0
This commit is contained in:
Aswin Sankar
2021-12-02 04:25:08 +00:00
parent 6ed0167930
commit 74cbfd5aab
2 changed files with 2 additions and 1 deletions

View File

@@ -164,7 +164,7 @@ public final class DnsResolver {
*/
@DnsError public final int code;
DnsException(@DnsError int code, @Nullable Throwable cause) {
public DnsException(@DnsError int code, @Nullable Throwable cause) {
super(cause);
this.code = code;
}