Class of android.os · NetworkOnMainThreadException.java · Android's reference
public class NetworkOnMainThreadException extends android.util.AndroidRuntimeException
NetworkOnMainThreadException ← AndroidRuntimeException
Network use on the main thread, which StrictMode forbids.
public NetworkOnMainThreadException() empty body sourcepublic NetworkOnMainThreadException(String message) sourcepublic NetworkOnMainThreadException(String message, Throwable cause) sourcepublic NetworkOnMainThreadException(Exception cause) sourceMade from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.