@AnyThread public class WebRequestError extends Exception
GeckoSession.NavigationDelegate.onLoadError(GeckoSession, String, WebRequestError)
.Modifier and Type | Field and Description |
---|---|
int |
category
The error category, e.g.
|
int |
code
The error code, e.g.
|
static int |
ERROR_CATEGORY_CONTENT
This is used for error codes relating to invalid
or corrupt web pages.
|
static int |
ERROR_CATEGORY_NETWORK
This is used for error codes relating to network
problems.
|
static int |
ERROR_CATEGORY_PROXY |
static int |
ERROR_CATEGORY_SAFEBROWSING |
static int |
ERROR_CATEGORY_SECURITY
This is used for error codes that relate to SSL
certificate validation.
|
static int |
ERROR_CATEGORY_UNKNOWN
This is normally used for error codes that don't
currently fit into any of the other categories.
|
static int |
ERROR_CATEGORY_URI |
static int |
ERROR_CONNECTION_REFUSED
The network request was refused by the server.
|
static int |
ERROR_CONTENT_CRASHED
The content process crashed.
|
static int |
ERROR_CORRUPTED_CONTENT
The content returned was corrupted.
|
static int |
ERROR_FILE_ACCESS_DENIED
The OS blocked access to a file.
|
static int |
ERROR_FILE_NOT_FOUND
A file was not found (usually used for file:// URIs).
|
static int |
ERROR_INVALID_CONTENT_ENCODING
The content has an invalid encoding.
|
static int |
ERROR_MALFORMED_URI
An invalid URL was specified.
|
static int |
ERROR_NET_INTERRUPT
The network connection was interrupted.
|
static int |
ERROR_NET_RESET
The connection was reset.
|
static int |
ERROR_NET_TIMEOUT
The network request timed out.
|
static int |
ERROR_OFFLINE
This device does not have a network connection.
|
static int |
ERROR_PORT_BLOCKED
The request tried to use a port that is blocked by either the OS or Gecko.
|
static int |
ERROR_PROXY_CONNECTION_REFUSED
The proxy server refused the connection.
|
static int |
ERROR_REDIRECT_LOOP
A redirect loop was detected.
|
static int |
ERROR_SAFEBROWSING_HARMFUL_URI
The requested URI was present in the "harmful" blocklist.
|
static int |
ERROR_SAFEBROWSING_MALWARE_URI
The requested URI was present in the "malware" blocklist.
|
static int |
ERROR_SAFEBROWSING_PHISHING_URI
The requested URI was present in the "phishing" blocklist.
|
static int |
ERROR_SAFEBROWSING_UNWANTED_URI
The requested URI was present in the "unwanted" blocklist.
|
static int |
ERROR_SECURITY_BAD_CERT
This is used to indicate an untrusted or otherwise
invalid SSL certificate.
|
static int |
ERROR_SECURITY_SSL
This is used for a variety of SSL negotiation problems.
|
static int |
ERROR_UNKNOWN
An unknown error occurred
|
static int |
ERROR_UNKNOWN_HOST
The host could not be resolved.
|
static int |
ERROR_UNKNOWN_PROTOCOL
An unknown protocol was specified.
|
static int |
ERROR_UNKNOWN_PROXY_HOST
The host name of the proxy server could not be resolved.
|
static int |
ERROR_UNKNOWN_SOCKET_TYPE
The network request tried to use an unknown socket type.
|
static int |
ERROR_UNSAFE_CONTENT_TYPE
A content type was returned which was deemed unsafe.
|
Constructor and Description |
---|
WebRequestError(int code,
int category)
Construct a new WebRequestError with the specified code and category.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
int |
hashCode() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final int ERROR_CATEGORY_UNKNOWN
public static final int ERROR_CATEGORY_SECURITY
public static final int ERROR_CATEGORY_NETWORK
public static final int ERROR_CATEGORY_CONTENT
public static final int ERROR_CATEGORY_URI
public static final int ERROR_CATEGORY_PROXY
public static final int ERROR_CATEGORY_SAFEBROWSING
public static final int ERROR_UNKNOWN
public static final int ERROR_SECURITY_SSL
public static final int ERROR_SECURITY_BAD_CERT
public static final int ERROR_NET_INTERRUPT
public static final int ERROR_NET_TIMEOUT
public static final int ERROR_CONNECTION_REFUSED
public static final int ERROR_UNKNOWN_SOCKET_TYPE
public static final int ERROR_REDIRECT_LOOP
public static final int ERROR_OFFLINE
public static final int ERROR_PORT_BLOCKED
public static final int ERROR_NET_RESET
public static final int ERROR_UNSAFE_CONTENT_TYPE
public static final int ERROR_CORRUPTED_CONTENT
public static final int ERROR_CONTENT_CRASHED
public static final int ERROR_INVALID_CONTENT_ENCODING
public static final int ERROR_UNKNOWN_HOST
public static final int ERROR_MALFORMED_URI
public static final int ERROR_UNKNOWN_PROTOCOL
public static final int ERROR_FILE_NOT_FOUND
public static final int ERROR_FILE_ACCESS_DENIED
public static final int ERROR_PROXY_CONNECTION_REFUSED
public static final int ERROR_UNKNOWN_PROXY_HOST
public static final int ERROR_SAFEBROWSING_MALWARE_URI
public static final int ERROR_SAFEBROWSING_UNWANTED_URI
public static final int ERROR_SAFEBROWSING_HARMFUL_URI
public static final int ERROR_SAFEBROWSING_PHISHING_URI
public final int code
ERROR_MALFORMED_URI
.public final int category
ERROR_CATEGORY_URI
.public WebRequestError(int code, int category)
code
- An error code, e.g. ERROR_MALFORMED_URI
category
- An error category, e.g. ERROR_CATEGORY_URI