Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 37607cbb authored by Chiachang Wang's avatar Chiachang Wang
Browse files

Use UnknownHostException directly without casting it

ExecutionException cannot be casted to UnknownHostException. If
an unresolvable dns server is set, the ExecutionException will be
triggered and cause cast exception.

Bug: 123435238
Test: atest com.android.server.connectivity.NetworkMonitorTest
Test: Manual test with setting an unresolvable hostname in private
      dns config
Change-Id: Icdbc33ddd03740043cac2eff7dec209ffb500e2a
parent d53f5498
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment