public class UrlMismatchException extends IOException
IOException
is thrown when the remote path of the data to be fetched from the server
is not the same as the requested path. This happens when a redirect is in place.
For example, the device may be connected to a public Wi-Fi hotspot and all requests are redirected to the operator's landing page until the user accepts terms and conditions, provides payment details etc.
Constructor and Description |
---|
UrlMismatchException()
Constructs a new
UrlMismatchException with the default message filled in. |
UrlMismatchException(String detailMessage)
Constructs a new
UrlMismatchException , specifying the message. |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public UrlMismatchException()
UrlMismatchException
with the default message filled in.public UrlMismatchException(String detailMessage)
UrlMismatchException
, specifying the message.detailMessage
- The message.