com.jniwrapper.win32.winhttp
Class WinHttpException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended bycom.jniwrapper.win32.winhttp.WinHttpException
All Implemented Interfaces:
java.io.Serializable

public class WinHttpException
extends java.lang.Exception

Thrown to indicate that an error of some sort has occurred in Win HTTP.

See Also:
Serialized Form

Field Summary
static int ERROR_WINHTTP_AUTO_PROXY_SERVICE_ERROR
           
static int ERROR_WINHTTP_AUTODETECTION_FAILED
           
static int ERROR_WINHTTP_BAD_AUTO_PROXY_SCRIPT
           
static int ERROR_WINHTTP_CANNOT_CONNECT
           
static int ERROR_WINHTTP_CHUNKED_ENCODING_HEADER_SIZE_OVERFLOW
           
static int ERROR_WINHTTP_CLIENT_AUTH_CERT_NEEDED
           
static int ERROR_WINHTTP_CONNECTION_ERROR
           
static int ERROR_WINHTTP_HEADER_COUNT_EXCEEDED
           
static int ERROR_WINHTTP_HEADER_NOT_FOUND
           
static int ERROR_WINHTTP_HEADER_SIZE_OVERFLOW
           
static int ERROR_WINHTTP_INCORRECT_HANDLE_STATE
           
static int ERROR_WINHTTP_INCORRECT_HANDLE_TYPE
           
static int ERROR_WINHTTP_INTERNAL_ERROR
           
static int ERROR_WINHTTP_INVALID_OPTION
           
static int ERROR_WINHTTP_INVALID_SERVER_RESPONSE
           
static int ERROR_WINHTTP_INVALID_URL
           
static int ERROR_WINHTTP_LOGIN_FAILURE
           
static int ERROR_WINHTTP_NAME_NOT_RESOLVED
           
static int ERROR_WINHTTP_OPERATION_CANCELLED
           
static int ERROR_WINHTTP_OPTION_NOT_SETTABLE
           
static int ERROR_WINHTTP_REDIRECT_FAILED
           
static int ERROR_WINHTTP_RESEND_REQUEST
           
static int ERROR_WINHTTP_RESPONSE_DRAIN_OVERFLOW
           
static int ERROR_WINHTTP_SECURE_CERT_CN_INVALID
           
static int ERROR_WINHTTP_SECURE_CERT_DATE_INVALID
           
static int ERROR_WINHTTP_SECURE_CERT_REV_FAILED
           
static int ERROR_WINHTTP_SECURE_CERT_REVOKED
           
static int ERROR_WINHTTP_SECURE_CERT_WRONG_USAGE
           
static int ERROR_WINHTTP_SECURE_FAILURE
           
static int ERROR_WINHTTP_SECURE_INVALID_CA
           
static int ERROR_WINHTTP_SECURE_INVALID_CERT
           
static int ERROR_WINHTTP_SHUTDOWN
           
static int ERROR_WINHTTP_TIMEOUT
           
static int ERROR_WINHTTP_UNABLE_TO_DOWNLOAD_SCRIPT
           
static int ERROR_WINHTTP_UNRECOGNIZED_SCHEME
           
 
Constructor Summary
WinHttpException()
           
WinHttpException(long errorCode)
           
WinHttpException(java.lang.String message)
           
 
Method Summary
 int getErrorCode()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ERROR_WINHTTP_TIMEOUT

public static final int ERROR_WINHTTP_TIMEOUT
See Also:
Constant Field Values

ERROR_WINHTTP_INTERNAL_ERROR

public static final int ERROR_WINHTTP_INTERNAL_ERROR
See Also:
Constant Field Values

ERROR_WINHTTP_INVALID_URL

public static final int ERROR_WINHTTP_INVALID_URL
See Also:
Constant Field Values

ERROR_WINHTTP_UNRECOGNIZED_SCHEME

public static final int ERROR_WINHTTP_UNRECOGNIZED_SCHEME
See Also:
Constant Field Values

ERROR_WINHTTP_NAME_NOT_RESOLVED

public static final int ERROR_WINHTTP_NAME_NOT_RESOLVED
See Also:
Constant Field Values

ERROR_WINHTTP_INVALID_OPTION

public static final int ERROR_WINHTTP_INVALID_OPTION
See Also:
Constant Field Values

ERROR_WINHTTP_OPTION_NOT_SETTABLE

public static final int ERROR_WINHTTP_OPTION_NOT_SETTABLE
See Also:
Constant Field Values

ERROR_WINHTTP_SHUTDOWN

public static final int ERROR_WINHTTP_SHUTDOWN
See Also:
Constant Field Values

ERROR_WINHTTP_LOGIN_FAILURE

public static final int ERROR_WINHTTP_LOGIN_FAILURE
See Also:
Constant Field Values

ERROR_WINHTTP_OPERATION_CANCELLED

public static final int ERROR_WINHTTP_OPERATION_CANCELLED
See Also:
Constant Field Values

ERROR_WINHTTP_INCORRECT_HANDLE_TYPE

public static final int ERROR_WINHTTP_INCORRECT_HANDLE_TYPE
See Also:
Constant Field Values

ERROR_WINHTTP_INCORRECT_HANDLE_STATE

public static final int ERROR_WINHTTP_INCORRECT_HANDLE_STATE
See Also:
Constant Field Values

ERROR_WINHTTP_CANNOT_CONNECT

public static final int ERROR_WINHTTP_CANNOT_CONNECT
See Also:
Constant Field Values

ERROR_WINHTTP_CONNECTION_ERROR

public static final int ERROR_WINHTTP_CONNECTION_ERROR
See Also:
Constant Field Values

ERROR_WINHTTP_RESEND_REQUEST

public static final int ERROR_WINHTTP_RESEND_REQUEST
See Also:
Constant Field Values

ERROR_WINHTTP_CLIENT_AUTH_CERT_NEEDED

public static final int ERROR_WINHTTP_CLIENT_AUTH_CERT_NEEDED
See Also:
Constant Field Values

ERROR_WINHTTP_HEADER_NOT_FOUND

public static final int ERROR_WINHTTP_HEADER_NOT_FOUND
See Also:
Constant Field Values

ERROR_WINHTTP_INVALID_SERVER_RESPONSE

public static final int ERROR_WINHTTP_INVALID_SERVER_RESPONSE
See Also:
Constant Field Values

ERROR_WINHTTP_REDIRECT_FAILED

public static final int ERROR_WINHTTP_REDIRECT_FAILED
See Also:
Constant Field Values

ERROR_WINHTTP_AUTO_PROXY_SERVICE_ERROR

public static final int ERROR_WINHTTP_AUTO_PROXY_SERVICE_ERROR
See Also:
Constant Field Values

ERROR_WINHTTP_BAD_AUTO_PROXY_SCRIPT

public static final int ERROR_WINHTTP_BAD_AUTO_PROXY_SCRIPT
See Also:
Constant Field Values

ERROR_WINHTTP_UNABLE_TO_DOWNLOAD_SCRIPT

public static final int ERROR_WINHTTP_UNABLE_TO_DOWNLOAD_SCRIPT
See Also:
Constant Field Values

ERROR_WINHTTP_SECURE_FAILURE

public static final int ERROR_WINHTTP_SECURE_FAILURE
See Also:
Constant Field Values

ERROR_WINHTTP_SECURE_CERT_DATE_INVALID

public static final int ERROR_WINHTTP_SECURE_CERT_DATE_INVALID
See Also:
Constant Field Values

ERROR_WINHTTP_SECURE_CERT_CN_INVALID

public static final int ERROR_WINHTTP_SECURE_CERT_CN_INVALID
See Also:
Constant Field Values

ERROR_WINHTTP_SECURE_INVALID_CA

public static final int ERROR_WINHTTP_SECURE_INVALID_CA
See Also:
Constant Field Values

ERROR_WINHTTP_SECURE_CERT_REV_FAILED

public static final int ERROR_WINHTTP_SECURE_CERT_REV_FAILED
See Also:
Constant Field Values

ERROR_WINHTTP_SECURE_INVALID_CERT

public static final int ERROR_WINHTTP_SECURE_INVALID_CERT
See Also:
Constant Field Values

ERROR_WINHTTP_SECURE_CERT_REVOKED

public static final int ERROR_WINHTTP_SECURE_CERT_REVOKED
See Also:
Constant Field Values

ERROR_WINHTTP_SECURE_CERT_WRONG_USAGE

public static final int ERROR_WINHTTP_SECURE_CERT_WRONG_USAGE
See Also:
Constant Field Values

ERROR_WINHTTP_AUTODETECTION_FAILED

public static final int ERROR_WINHTTP_AUTODETECTION_FAILED
See Also:
Constant Field Values

ERROR_WINHTTP_HEADER_COUNT_EXCEEDED

public static final int ERROR_WINHTTP_HEADER_COUNT_EXCEEDED
See Also:
Constant Field Values

ERROR_WINHTTP_HEADER_SIZE_OVERFLOW

public static final int ERROR_WINHTTP_HEADER_SIZE_OVERFLOW
See Also:
Constant Field Values

ERROR_WINHTTP_CHUNKED_ENCODING_HEADER_SIZE_OVERFLOW

public static final int ERROR_WINHTTP_CHUNKED_ENCODING_HEADER_SIZE_OVERFLOW
See Also:
Constant Field Values

ERROR_WINHTTP_RESPONSE_DRAIN_OVERFLOW

public static final int ERROR_WINHTTP_RESPONSE_DRAIN_OVERFLOW
See Also:
Constant Field Values
Constructor Detail

WinHttpException

public WinHttpException()

WinHttpException

public WinHttpException(java.lang.String message)

WinHttpException

public WinHttpException(long errorCode)
Method Detail

getErrorCode

public int getErrorCode()