Enum Constant and Description |
---|
ABORTED
An operation was aborted (due to user action).
|
ACCESS_DENIED
Permission to access a resource, other than the network, was denied.
|
ADD_USER_CERT_FAILED
An error adding to the OS certificate database (e.g.
|
ADDRESS_IN_USE
Returned when attempting to bind an address that is already in use.
|
ADDRESS_INVALID
The IP address or port number is invalid (e.g., cannot connect to the IP address 0 or the port 0).
|
ADDRESS_UNREACHABLE
The IP address is unreachable.
|
BAD_SSL_CLIENT_AUTH_CERT
The SSL handshake failed because of a bad or missing client certificate.
|
BLOCKED_BY_ADMINISTRATOR
The request was blocked by the URL blacklist configured by the domain administrator.
|
BLOCKED_BY_CLIENT
The client chose to block the request.
|
CACHE_CHECKSUM_MISMATCH
The cache found an entry with an invalid checksum.
|
CACHE_CHECKSUM_READ_FAILURE
The cache was unable to read a checksum record on an entry.
|
CACHE_CREATE_FAILURE
The disk cache is unable to create this entry.
|
CACHE_MISS
The cache does not have the requested entry.
|
CACHE_OPEN_FAILURE
The disk cache is unable to open this entry.
|
CACHE_OPERATION_NOT_SUPPORTED
The operation is not supported for this entry.
|
CACHE_RACE
Multiple transactions are racing to create disk cache entries.
|
CACHE_READ_FAILURE
Unable to read from the disk cache.
|
CACHE_WRITE_FAILURE
Unable to write to the disk cache.
|
CERT_AUTHORITY_INVALID
The server responded with a certificate that is signed by an authority we don't trust.
|
CERT_COMMON_NAME_INVALID
The server responded with a certificate whose common name did not match the host name.
|
CERT_CONTAINS_ERRORS
The server responded with a certificate that contains errors.
|
CERT_DATE_INVALID
The server responded with a certificate that, by our clock, appears to either not yet be valid or to have expired.
|
CERT_END
The value immediately past the last certificate error code.
|
CERT_ERROR_IN_SSL_RENEGOTIATION
During SSL renegotiation (rehandshake),, the server sent a certificate with an error.
|
CERT_INVALID
The server responded with a certificate that is invalid.
|
CERT_NO_REVOCATION_MECHANISM
The certificate has no mechanism for determining if it is revoked.
|
CERT_NON_UNIQUE_NAME
The host name specified in the certificate is not unique.
|
CERT_REVOKED
The server responded with a certificate has been revoked.
|
CERT_UNABLE_TO_CHECK_REVOCATION
Revocation information for the security certificate for this site is not available.
|
CERT_WEAK_KEY
The server responded with a certificate that contains a weak key (e.g.
|
CERT_WEAK_SIGNATURE_ALGORITHM
The server responded with a certificate that is signed using a weak signature algorithm.
|
CLIENT_AUTH_CERT_TYPE_UNSUPPORTED
Server request for client certificate did not contain any types we support.
|
CONNECTION_ABORTED
A connection timed out as a result of not receiving an ACK for data sent.
|
CONNECTION_CLOSED
A connection was closed (corresponding to a TCP FIN).
|
CONNECTION_FAILED
A connection attempt failed.
|
CONNECTION_REFUSED
A connection attempt was refused.
|
CONNECTION_RESET
A connection was reset (corresponding to a TCP RST).
|
CONNECTION_TIMED_OUT
A connection attempt timed out.
|
CONTENT_DECODING_FAILED
Content decoding of the response body failed.
|
CONTENT_LENGTH_MISMATCH
The HTTP response body transferred fewer bytes than were advertised by the Content-Length header when the connection is closed.
|
DISALLOWED_URL_SCHEME
The scheme of the URL is disallowed.
|
DNS_CACHE_MISS
The entry was not found in cache, for cache-only lookups.
|
DNS_MALFORMED_RESPONSE
DNS resolver received a malformed response.
|
DNS_SEARCH_EMPTY
Suffix search list rules prevent resolution of the given host name.
|
DNS_SERVER_FAILED
DNS server failed.
|
DNS_SERVER_REQUIRES_TCP
DNS server requires TCP
|
DNS_SORT_ERROR
Failed to sort addresses according to RFC3484.
|
DNS_TIMED_OUT
DNS transaction timed out.
|
EMPTY_RESPONSE
The server closed the connection without sending any data.
|
ENCODING_CONVERSION_FAILED
Converting the response to target encoding failed.
|
ENCODING_DETECTION_FAILED
Detecting the encoding of the response failed.
|
FAILED
A generic failure occurred.
|
FILE_EXISTS
The file already exists.
|
FILE_NO_SPACE
Not enough room left on the disk.
|
FILE_NOT_FOUND
The file or directory cannot be found.
|
FILE_PATH_TOO_LONG
The path or file name is too long.
|
FILE_TOO_BIG
The file is too large.
|
FILE_VIRUS_INFECTED
The file has a virus.
|
FTP_BAD_COMMAND_SEQUENCE
Server rejected our command because we didn't issue the commands in right order.
|
FTP_COMMAND_NOT_SUPPORTED
Server does not support the command we issued.
|
FTP_FAILED
A generic error for failed FTP control connection command.
|
FTP_FILE_BUSY
The file is busy, or some other temporary error condition on opening the file.
|
FTP_SERVICE_UNAVAILABLE
The server cannot fulfill the request at this point.
|
FTP_SYNTAX_ERROR
Server rejected our command because of syntax errors.
|
FTP_TRANSFER_ABORTED
The server has aborted the transfer.
|
HEADERS_TRUNCATED
The HTTP headers were truncated by an EOF.
|
HOST_RESOLVER_QUEUE_TOO_LARGE
There are too many pending DNS resolves, so a request in the queue was aborted.
|
HTTPS_PROXY_TUNNEL_RESPONSE
A request to create an SSL tunnel connection through the HTTPS proxy received a non-200 (OK), and non-407 (Proxy Auth), response.
|
IMPORT_CA_CERT_FAILED
CA import failed due to some other error.
|
IMPORT_CA_CERT_NOT_CA
CA import failed - not a CA cert.
|
IMPORT_CERT_ALREADY_EXISTS
Import failed - certificate already exists in database.
|
IMPORT_SERVER_CERT_FAILED
Server certificate import failed due to some internal error.
|
INCOMPLETE_CHUNKED_ENCODING
The HTTP response body is transferred with Chunked-Encoding, but the terminating zero-length chunk was never sent when the connection is closed.
|
INCOMPLETE_SPDY_HEADERS
SPDY Headers have been received, but not all of them - status or version headers are missing, so we're expecting additional frames to complete them.
|
INSECURE_RESPONSE
The server's response was insecure (e.g.
|
INSUFFICIENT_RESOURCES
There were not enough resources to complete the operation.
|
INTERNET_DISCONNECTED
The Internet connection has been lost.
|
INVALID_ARGUMENT
An argument to the function is incorrect.
|
INVALID_AUTH_CREDENTIALS
Credentials could not be established during HTTP Authentication.
|
INVALID_CHUNKED_ENCODING
Error in chunked transfer encoding.
|
INVALID_HANDLE
The handle or file descriptor is invalid.
|
INVALID_RESPONSE
The server's response was invalid.
|
INVALID_SPDY_STREAM
Attempted use of an unknown SPDY stream id.
|
INVALID_URL
The URL is invalid.
|
IO_PENDING
An asynchronous IO operation is not yet complete.
|
KEY_GENERATION_FAILED
Key generation failed.
|
MALFORMED_IDENTITY
The identity used for authentication is invalid.
|
MANDATORY_PROXY_CONFIGURATION_FAILED
A mandatory proxy configuration could not be used.
|
METHOD_NOT_SUPPORTED
The server did not support the request method.
|
MISCONFIGURED_AUTH_ENVIRONMENT
The environment was not set up correctly for authentication (for example, no KDC could be found or the principal is unknown.
|
MISSING_AUTH_CREDENTIALS
(GSSAPI), No Kerberos credentials were available during HTTP Authentication.
|
MSG_TOO_BIG
The message was too large for the transport.
|
NAME_NOT_RESOLVED
The host name could not be resolved.
|
NAME_RESOLUTION_FAILED
An error occurred when trying to do a name resolution (DNS),.
|
NETWORK_ACCESS_DENIED
Permission to access the network was denied.
|
NETWORK_CHANGED
The network changed.
|
NETWORK_IO_SUSPENDED
An operation could not be completed because all network IO is suspended.
|
NO_PRIVATE_KEY_FOR_CERT
The server responded to a
|
NO_SSL_VERSIONS_ENABLED
No SSL protocol versions are enabled.
|
NO_SUPPORTED_PROXIES
There are no supported proxies in the provided list.
|
NOT_IMPLEMENTED
The operation failed because of unimplemented functionality.
|
NPN_NEGOTIATION_FAILED
The request to negotiate an alternate protocol failed.
|
ORIGIN_BOUND_CERT_GENERATION_FAILED
Server-bound certificate generation failed.
|
ORIGIN_BOUND_CERT_GENERATION_TYPE_MISMATCH
Server requested one type of cert, then requested a different type while the first was still being generated.
|
OUT_OF_MEMORY
Memory allocation failed.
|
PAC_NOT_IN_DHCP
No PAC URL configuration could be retrieved from DHCP.
|
PAC_SCRIPT_FAILED
The evaluation of the PAC script failed.
|
PAC_STATUS_NOT_OK
The PAC requested by HTTP did not have a valid status code (non-200).
|
PIPELINE_EVICTION
The request couldn't be completed on an HTTP pipeline.
|
PKCS12_IMPORT_BAD_PASSWORD
PKCS #12 import failed due to incorrect password.
|
PKCS12_IMPORT_FAILED
PKCS #12 import failed due to other error.
|
PKCS12_IMPORT_INVALID_FILE
PKCS #12 import failed due to invalid/corrupt file.
|
PKCS12_IMPORT_INVALID_MAC
PKCS #12 import failed due to invalid MAC.
|
PKCS12_IMPORT_UNSUPPORTED
PKCS #12 import failed due to unsupported features.
|
PRECONNECT_MAX_SOCKET_LIMIT
We've hit the max socket limit for the socket pool while preconnecting.
|
PRIVATE_KEY_EXPORT_FAILED
Failure to export private key.
|
PROTOCOL_SWITCHED
Connection was aborted for switching to another protocol.
|
PROXY_AUTH_REQUESTED
The proxy requested authentication (for tunnel establishment).
|
PROXY_AUTH_UNSUPPORTED
The proxy requested authentication (for tunnel establishment), with an unsupported method.
|
PROXY_CERTIFICATE_INVALID
The certificate presented by the HTTPS Proxy was invalid.
|
PROXY_CONNECTION_FAILED
Could not create a connection to the proxy server.
|
QUIC_PROTOCOL_ERROR
There is a QUIC protocol error.
|
REQUEST_RANGE_NOT_SATISFIABLE
The response was 416 (Requested range not satisfiable), and the server cannot satisfy the range requested.
|
RESPONSE_BODY_TOO_BIG_TO_DRAIN
The HTTP response was too big to drain.
|
RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION
The HTTP response contained multiple Content-Disposition headers.
|
RESPONSE_HEADERS_MULTIPLE_CONTENT_LENGTH
The HTTP response contained multiple distinct Content-Length headers.
|
RESPONSE_HEADERS_MULTIPLE_LOCATION
The HTTP response contained multiple Location headers.
|
RESPONSE_HEADERS_TOO_BIG
The headers section of the response is too large.
|
SOCKET_IS_CONNECTED
The socket is already connected.
|
SOCKET_NOT_CONNECTED
The socket is not connected.
|
SOCKS_CONNECTION_FAILED
Failed establishing a connection to the SOCKS proxy server for a target host.
|
SOCKS_CONNECTION_HOST_UNREACHABLE
The SOCKS proxy server failed establishing connection to the target host because that host is unreachable.
|
SPDY_PING_FAILED
SPDY server didn't respond to the PING message.
|
SPDY_PROTOCOL_ERROR
There is a SPDY protocol error.
|
SPDY_SERVER_REFUSED_STREAM
SPDY server refused the stream.
|
SPDY_SESSION_ALREADY_EXISTS
A SPDY session already exists, and should be used instead of this connection.
|
SSL_BAD_PEER_PUBLIC_KEY
SSL peer's public key is invalid.
|
SSL_BAD_RECORD_MAC_ALERT
An SSL peer sent us a fatal bad_record_mac alert.
|
SSL_CLIENT_AUTH_CERT_NEEDED
The server requested a client certificate for SSL client authentication.
|
SSL_CLIENT_AUTH_CERT_NO_PRIVATE_KEY
The SSL client certificate has no private key.
|
SSL_CLIENT_AUTH_PRIVATE_KEY_ACCESS_DENIED
The permission to use the SSL client certificate's private key was denied.
|
SSL_CLIENT_AUTH_SIGNATURE_FAILED
We were unable to sign the CertificateVerify data of an SSL client auth handshake with the client certificate's private key.
|
SSL_DECOMPRESSION_FAILURE_ALERT
An SSL peer sent us a fatal decompression_failure alert.
|
SSL_HANDSHAKE_NOT_COMPLETED
An operation failed because the SSL handshake has not completed.
|
SSL_NO_RENEGOTIATION
The peer sent an SSL no_renegotiation alert message.
|
SSL_PINNED_KEY_NOT_IN_CERT_CHAIN
The certificate didn't match the built-in public key pins for the host name.
|
SSL_PROTOCOL_ERROR
An SSL protocol error occurred.
|
SSL_RENEGOTIATION_REQUESTED
The server requested a renegotiation (rehandshake),.
|
SSL_UNSAFE_NEGOTIATION
A known TLS strict server didn't offer the renegotiation extension.
|
SSL_VERSION_OR_CIPHER_MISMATCH
The client and server don't support a common SSL protocol version or cipher suite.
|
SSL_WEAK_SERVER_EPHEMERAL_DH_KEY
The SSL server attempted to use a weak ephemeral Diffie-Hellman key.
|
SYN_REPLY_NOT_RECEIVED
FLIP data received without receiving a SYN_REPLY on the stream.
|
TEMPORARILY_THROTTLED
The request throttler module cancelled this request to avoid DDOS.
|
TIMED_OUT
An operation timed out.
|
TOO_MANY_REDIRECTS
Attempting to load an URL resulted in too many redirects.
|
TUNNEL_CONNECTION_FAILED
A tunnel connection through the proxy could not be established.
|
UNDOCUMENTED_SECURITY_LIBRARY_STATUS
An undocumented SSPI or GSSAPI status code was returned.
|
UNEXPECTED
An unexpected error.
|
UNEXPECTED_PROXY_AUTH
The response was 407 (Proxy Authentication Required),, yet we did not send the request to a proxy.
|
UNEXPECTED_SECURITY_LIBRARY_STATUS
An unexpected, but documented, SSPI or GSSAPI status code was returned.
|
UNKNOWN
Unknown or unsupported error code.
|
UNKNOWN_URL_SCHEME
The scheme of the URL is unknown.
|
UNRECOGNIZED_FTP_DIRECTORY_LISTING_FORMAT
The server sent an FTP directory listing in a format we do not understand.
|
UNSAFE_PORT
Attempting to load an URL with an unsafe port number.
|
UNSAFE_REDIRECT
Attempting to load an URL resulted in an unsafe redirect (e.g., a redirect to file:// is considered unsafe).
|
UNSUPPORTED_AUTH_SCHEME
An HTTP Authentication scheme was tried which is not supported on this machine.
|
UPLOAD_FILE_CHANGED
The file upload failed because the file's modification time was different from the expectation.
|
WINSOCK_UNEXPECTED_WRITTEN_BYTES
Winsock sometimes reports more data written than passed.
|
WS_PROTOCOL_ERROR
Websocket protocol error.
|
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode() |
static NetError |
valueOf(int errorCode) |
static NetError |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
返回具有指定名称的此类型的枚举常量。 |
static NetError[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
以声明顺序返回包含此枚举类型的常量的数组。 |
public static final NetError IO_PENDING
public static final NetError FAILED
public static final NetError ABORTED
public static final NetError INVALID_ARGUMENT
public static final NetError INVALID_HANDLE
public static final NetError FILE_NOT_FOUND
public static final NetError TIMED_OUT
public static final NetError FILE_TOO_BIG
public static final NetError UNEXPECTED
public static final NetError ACCESS_DENIED
public static final NetError NOT_IMPLEMENTED
public static final NetError INSUFFICIENT_RESOURCES
public static final NetError OUT_OF_MEMORY
public static final NetError UPLOAD_FILE_CHANGED
public static final NetError SOCKET_NOT_CONNECTED
public static final NetError FILE_EXISTS
public static final NetError FILE_PATH_TOO_LONG
public static final NetError FILE_NO_SPACE
public static final NetError FILE_VIRUS_INFECTED
public static final NetError BLOCKED_BY_CLIENT
public static final NetError NETWORK_CHANGED
public static final NetError BLOCKED_BY_ADMINISTRATOR
public static final NetError SOCKET_IS_CONNECTED
public static final NetError CONNECTION_CLOSED
public static final NetError CONNECTION_RESET
public static final NetError CONNECTION_REFUSED
public static final NetError CONNECTION_ABORTED
public static final NetError CONNECTION_FAILED
public static final NetError NAME_NOT_RESOLVED
public static final NetError INTERNET_DISCONNECTED
public static final NetError SSL_PROTOCOL_ERROR
public static final NetError ADDRESS_INVALID
public static final NetError ADDRESS_UNREACHABLE
public static final NetError SSL_CLIENT_AUTH_CERT_NEEDED
public static final NetError TUNNEL_CONNECTION_FAILED
public static final NetError NO_SSL_VERSIONS_ENABLED
public static final NetError SSL_VERSION_OR_CIPHER_MISMATCH
public static final NetError SSL_RENEGOTIATION_REQUESTED
public static final NetError PROXY_AUTH_UNSUPPORTED
public static final NetError CERT_ERROR_IN_SSL_RENEGOTIATION
public static final NetError BAD_SSL_CLIENT_AUTH_CERT
public static final NetError CONNECTION_TIMED_OUT
public static final NetError HOST_RESOLVER_QUEUE_TOO_LARGE
public static final NetError SOCKS_CONNECTION_FAILED
public static final NetError SOCKS_CONNECTION_HOST_UNREACHABLE
public static final NetError NPN_NEGOTIATION_FAILED
public static final NetError SSL_NO_RENEGOTIATION
public static final NetError WINSOCK_UNEXPECTED_WRITTEN_BYTES
public static final NetError SSL_DECOMPRESSION_FAILURE_ALERT
public static final NetError SSL_BAD_RECORD_MAC_ALERT
public static final NetError PROXY_AUTH_REQUESTED
public static final NetError SSL_UNSAFE_NEGOTIATION
public static final NetError SSL_WEAK_SERVER_EPHEMERAL_DH_KEY
public static final NetError PROXY_CONNECTION_FAILED
public static final NetError MANDATORY_PROXY_CONFIGURATION_FAILED
public static final NetError PRECONNECT_MAX_SOCKET_LIMIT
public static final NetError SSL_CLIENT_AUTH_PRIVATE_KEY_ACCESS_DENIED
public static final NetError SSL_CLIENT_AUTH_CERT_NO_PRIVATE_KEY
public static final NetError PROXY_CERTIFICATE_INVALID
public static final NetError NAME_RESOLUTION_FAILED
public static final NetError NETWORK_ACCESS_DENIED
public static final NetError TEMPORARILY_THROTTLED
public static final NetError HTTPS_PROXY_TUNNEL_RESPONSE
public static final NetError SSL_CLIENT_AUTH_SIGNATURE_FAILED
public static final NetError MSG_TOO_BIG
public static final NetError SPDY_SESSION_ALREADY_EXISTS
public static final NetError WS_PROTOCOL_ERROR
public static final NetError PROTOCOL_SWITCHED
public static final NetError ADDRESS_IN_USE
public static final NetError SSL_HANDSHAKE_NOT_COMPLETED
public static final NetError SSL_BAD_PEER_PUBLIC_KEY
public static final NetError SSL_PINNED_KEY_NOT_IN_CERT_CHAIN
public static final NetError CLIENT_AUTH_CERT_TYPE_UNSUPPORTED
public static final NetError ORIGIN_BOUND_CERT_GENERATION_TYPE_MISMATCH
public static final NetError CERT_COMMON_NAME_INVALID
public static final NetError CERT_DATE_INVALID
public static final NetError CERT_AUTHORITY_INVALID
public static final NetError CERT_CONTAINS_ERRORS
public static final NetError CERT_NO_REVOCATION_MECHANISM
public static final NetError CERT_UNABLE_TO_CHECK_REVOCATION
public static final NetError CERT_REVOKED
public static final NetError CERT_INVALID
public static final NetError CERT_WEAK_SIGNATURE_ALGORITHM
public static final NetError CERT_NON_UNIQUE_NAME
public static final NetError CERT_WEAK_KEY
public static final NetError CERT_END
public static final NetError INVALID_URL
public static final NetError DISALLOWED_URL_SCHEME
public static final NetError UNKNOWN_URL_SCHEME
public static final NetError TOO_MANY_REDIRECTS
public static final NetError UNSAFE_REDIRECT
public static final NetError UNSAFE_PORT
public static final NetError INVALID_RESPONSE
public static final NetError INVALID_CHUNKED_ENCODING
public static final NetError METHOD_NOT_SUPPORTED
public static final NetError UNEXPECTED_PROXY_AUTH
public static final NetError EMPTY_RESPONSE
public static final NetError RESPONSE_HEADERS_TOO_BIG
public static final NetError PAC_STATUS_NOT_OK
public static final NetError PAC_SCRIPT_FAILED
public static final NetError REQUEST_RANGE_NOT_SATISFIABLE
public static final NetError MALFORMED_IDENTITY
public static final NetError CONTENT_DECODING_FAILED
public static final NetError NETWORK_IO_SUSPENDED
public static final NetError SYN_REPLY_NOT_RECEIVED
public static final NetError ENCODING_CONVERSION_FAILED
public static final NetError UNRECOGNIZED_FTP_DIRECTORY_LISTING_FORMAT
public static final NetError INVALID_SPDY_STREAM
public static final NetError NO_SUPPORTED_PROXIES
public static final NetError SPDY_PROTOCOL_ERROR
public static final NetError INVALID_AUTH_CREDENTIALS
public static final NetError UNSUPPORTED_AUTH_SCHEME
public static final NetError ENCODING_DETECTION_FAILED
public static final NetError MISSING_AUTH_CREDENTIALS
public static final NetError UNEXPECTED_SECURITY_LIBRARY_STATUS
public static final NetError MISCONFIGURED_AUTH_ENVIRONMENT
public static final NetError UNDOCUMENTED_SECURITY_LIBRARY_STATUS
public static final NetError RESPONSE_BODY_TOO_BIG_TO_DRAIN
public static final NetError RESPONSE_HEADERS_MULTIPLE_CONTENT_LENGTH
public static final NetError INCOMPLETE_SPDY_HEADERS
public static final NetError PAC_NOT_IN_DHCP
public static final NetError RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION
public static final NetError RESPONSE_HEADERS_MULTIPLE_LOCATION
public static final NetError SPDY_SERVER_REFUSED_STREAM
public static final NetError SPDY_PING_FAILED
public static final NetError PIPELINE_EVICTION
public static final NetError CONTENT_LENGTH_MISMATCH
public static final NetError INCOMPLETE_CHUNKED_ENCODING
public static final NetError QUIC_PROTOCOL_ERROR
public static final NetError HEADERS_TRUNCATED
public static final NetError CACHE_MISS
public static final NetError CACHE_READ_FAILURE
public static final NetError CACHE_WRITE_FAILURE
public static final NetError CACHE_OPERATION_NOT_SUPPORTED
public static final NetError CACHE_OPEN_FAILURE
public static final NetError CACHE_CREATE_FAILURE
public static final NetError CACHE_RACE
public static final NetError CACHE_CHECKSUM_READ_FAILURE
public static final NetError CACHE_CHECKSUM_MISMATCH
public static final NetError INSECURE_RESPONSE
public static final NetError NO_PRIVATE_KEY_FOR_CERT
public static final NetError ADD_USER_CERT_FAILED
public static final NetError FTP_FAILED
public static final NetError FTP_SERVICE_UNAVAILABLE
public static final NetError FTP_TRANSFER_ABORTED
public static final NetError FTP_FILE_BUSY
public static final NetError FTP_SYNTAX_ERROR
public static final NetError FTP_COMMAND_NOT_SUPPORTED
public static final NetError FTP_BAD_COMMAND_SEQUENCE
public static final NetError PKCS12_IMPORT_BAD_PASSWORD
public static final NetError PKCS12_IMPORT_FAILED
public static final NetError IMPORT_CA_CERT_NOT_CA
public static final NetError IMPORT_CERT_ALREADY_EXISTS
public static final NetError IMPORT_CA_CERT_FAILED
public static final NetError IMPORT_SERVER_CERT_FAILED
public static final NetError PKCS12_IMPORT_INVALID_MAC
public static final NetError PKCS12_IMPORT_INVALID_FILE
public static final NetError PKCS12_IMPORT_UNSUPPORTED
public static final NetError KEY_GENERATION_FAILED
public static final NetError ORIGIN_BOUND_CERT_GENERATION_FAILED
public static final NetError PRIVATE_KEY_EXPORT_FAILED
public static final NetError DNS_MALFORMED_RESPONSE
public static final NetError DNS_SERVER_REQUIRES_TCP
public static final NetError DNS_SERVER_FAILED
public static final NetError DNS_TIMED_OUT
public static final NetError DNS_CACHE_MISS
public static final NetError DNS_SEARCH_EMPTY
public static final NetError DNS_SORT_ERROR
public static final NetError UNKNOWN
public static NetError[] values()
for (NetError c : NetError.values()) System.out.println(c);
public static NetError valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
-要返回的枚举常量的名称。
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified name
java.lang.NullPointerException
- if the argument is null
public static NetError valueOf(int errorCode)
public int getErrorCode()