|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jniwrapper.Parameter com.jniwrapper.bx com.jniwrapper.Int32 com.jniwrapper.win32.HResult
public class HResult
The HResult class represents the HRESULT data type and is used to describe errors.
Field Summary | |
---|---|
static int |
CLASS_E_CLASSNOTAVAILABLE
ClassFactory cannot supply requested class. |
static int |
CLASS_E_NOAGGREGATION
Class does not support aggregation (or class object is remote). |
static int |
CLASS_E_NOTLICENSED
Class is not licensed for use. |
static int |
CO_E_ALREADYINITIALIZED
COM library has already been called. |
static int |
CO_E_APPDIDNTREG
Application was launched, but it did not register a class factory. |
static int |
CO_E_APPNOTFOUND
Application not found. |
static int |
CO_E_APPSINGLEUSE
Application cannot be run more than once. |
static int |
CO_E_CANTDETERMINECLASS
Class of object cannot be determined. |
static int |
CO_E_CLASSSTRING
Invalid class string. |
static int |
CO_E_DLLNOTFOUND
DLL for class not found. |
static int |
CO_E_ERRORINAPP
Some error in application. |
static int |
CO_E_ERRORINDLL
Error in the DLL. |
static int |
CO_E_IIDSTRING
Invalid interface string |
static int |
CO_E_NOTINITIALIZED
COM library has not been called. |
static int |
CO_E_OBJISREG
Object is already registered. |
static int |
CO_E_OBJNOTCONNECTED
Object is not connected to server. |
static int |
CO_E_OBJNOTREG
Object is not registered. |
static int |
CO_E_RELEASED
Object has been released. |
static int |
CO_E_WRONGOSFORAPP
Wrong operating system or operating system version for application. |
static int |
CONNECT_E_ADVISELIMIT
This implementation's limit for advisory connections has been reached |
static int |
CONNECT_E_CANNOTCONNECT
Connection attempt failed |
static int |
CONNECT_E_FIRST
The lowest allowed value for connection error codes. |
static int |
CONNECT_E_NOCONNECTION
There is no connection |
static int |
CONNECT_E_OVERRIDDEN
Must use a derived interface to connect |
static int |
DISP_E_ARRAYISLOCKED
Memory is locked. |
static int |
DISP_E_BADCALLEE
Invalid callee. |
static int |
DISP_E_BADINDEX
Invalid index. |
static int |
DISP_E_BADPARAMCOUNT
Invalid number of parameters. |
static int |
DISP_E_BADVARTYPE
Bad variable type. |
static int |
DISP_E_DIVBYZERO
Division by zero. |
static int |
DISP_E_EXCEPTION
Exception occurred. |
static int |
DISP_E_MEMBERNOTFOUND
Member not found. |
static int |
DISP_E_NONAMEDARGS
No named arguments. |
static int |
DISP_E_NOTACOLLECTION
Does not support a collection. |
static int |
DISP_E_OVERFLOW
Out of present range. |
static int |
DISP_E_PARAMNOTFOUND
Parameter not found. |
static int |
DISP_E_PARAMNOTOPTIONAL
Parameter not optional. |
static int |
DISP_E_TYPEMISMATCH
Type mismatch. |
static int |
DISP_E_UNKNOWNINTERFACE
Unknown interface. |
static int |
DISP_E_UNKNOWNLCID
Unknown language. |
static int |
DISP_E_UNKNOWNNAME
Unknown name. |
static int |
E_ABORT
Operation aborted |
static int |
E_ACCESSDENIED
General access denied error |
static int |
E_FAIL
The operation could not be performed. |
static int |
E_HANDLE
Handle that is not valid |
static int |
E_INVALIDARG
One of the arguments passed in was invalid. |
static int |
E_NOINTERFACE
The object searched for was not found. |
static int |
E_NOTIMPL
Not implemented. |
static int |
E_OUTOFMEMORY
A memory allocation attempt failed. |
static int |
E_POINTER
Pointer that is not valid |
static int |
E_UNEXPECTED
The target was not accessible, or the engine was not in a state where the function or method could be processed. |
static int |
INET_E_AUTHENTICATION_REQUIRED
Authentication is needed to access the object. |
static int |
INET_E_CANNOT_CONNECT
The attempt to connect to the Internet has failed. |
static int |
INET_E_CANNOT_INSTANTIATE_OBJECT
Creation of the object of the class associated with a specified CLSID failed |
static int |
INET_E_CANNOT_LOAD_DATA
The object could not be loaded. |
static int |
INET_E_CANNOT_LOCK_REQUEST
The requested resource could not be locked. |
static int |
INET_E_CANNOT_REPLACE_SFP_FILE
Cannot replace a file that is protected by System File Protection (SFP). |
static int |
INET_E_CODE_DOWNLOAD_DECLINED
The component download was declined by the user. |
static int |
INET_E_CONNECTION_TIMEOUT
The Internet connection has timed out. |
static int |
INET_E_DATA_NOT_AVAILABLE
An Internet connection was established, but the data cannot be retrieved. |
static int |
INET_E_DEFAULT_ACTION
Use the default security manager for this action. |
static int |
INET_E_DOWNLOAD_FAILURE
The download has failed (the connection was interrupted). |
static int |
INET_E_ERROR_FIRST
The lowest allowed value for an URL moniker error code. |
static int |
INET_E_ERROR_LAST
The highest allowed value for an URL moniker error code. |
static int |
INET_E_INVALID_REQUEST
The request was invalid. |
static int |
INET_E_INVALID_URL
The URL could not be parsed. |
static int |
INET_E_NO_SESSION
No Internet session was established. |
static int |
INET_E_NO_VALID_MEDIA
The object is not in one of the acceptable MIME types. |
static int |
INET_E_OBJECT_NOT_FOUND
The object was not found. |
static int |
INET_E_QUERYOPTION_UNKNOWN
The requested option is unknown. |
static int |
INET_E_REDIRECT_FAILED
Microsoft Win32 Internet (WinInet) cannot redirect. |
static int |
INET_E_REDIRECT_TO_DIR
The request is being redirected to a directory. |
static int |
INET_E_REDIRECTING
The request is being redirected. |
static int |
INET_E_RESOURCE_NOT_FOUND
The server or proxy was not found. |
static int |
INET_E_RESULT_DISPATCHED
The binding has already been completed and the result has been dispatched, so your abort call has been canceled. |
static int |
INET_E_SECURITY_PROBLEM
The URI contains syntax that attempts to bypass security. |
static int |
INET_E_UNKNOWN_PROTOCOL
The protocol is not known and no pluggable protocols have been entered that match. |
static int |
INET_E_USE_DEFAULT_PROTOCOLHANDLER
Use the default protocol handler. |
static int |
INET_E_USE_DEFAULT_SETTING
Use the default settings. |
static int |
INET_E_USE_EXTEND_BINDING
Reissue request with extended binding. |
static int |
OLE_E_ADVF
Invalid advise flags. |
static int |
OLE_E_ADVISENOTSUPPORTED
This implementation does not take advises. |
static int |
OLE_E_BLANK
Uninitialized object. |
static int |
OLE_E_CANT_BINDTOSOURCE
Not able to bind to the source. |
static int |
OLE_E_CANT_GETMONIKER
Not able to get the moniker of the object. |
static int |
OLE_E_CANTCONVERT
Not able to convert object. |
static int |
OLE_E_CLASSDIFF
Linked object's source class has changed. |
static int |
OLE_E_ENUM_NOMORE
Cannot enumerate any more because the associated data is missing. |
static int |
OLE_E_FIRST
The lowest allowed value for an OLE error code. |
static int |
OLE_E_INVALIDHWND
Invalid window handle. |
static int |
OLE_E_INVALIDRECT
Invalid rectangle. |
static int |
OLE_E_LAST
The highest allowed value for an OLE error code. |
static int |
OLE_E_NOCACHE
There is no cache to operate on. |
static int |
OLE_E_NOCONNECTION
There is no connection for this connection ID. |
static int |
OLE_E_NOSTORAGE
Not able to perform the operation because object is not given storage yet. |
static int |
OLE_E_NOT_INPLACEACTIVE
Object is not in any of the inplace active states. |
static int |
OLE_E_NOTRUNNING
Need to run the object to perform this operation. |
static int |
OLE_E_OLEVERB
Invalid OLEVERB structure. |
static int |
OLE_E_PROMPTSAVECANCELLED
User canceled out of the Save dialog box. |
static int |
OLE_E_STATIC
Object is static, operation not allowed. |
static int |
OLE_E_WRONGCOMPOBJ
compobj.dll is too old for the ole2.dll initialized. |
static int |
OLE_S_FIRST
The lowest allowed value for an OLE status code. |
static int |
OLE_S_LAST
The highest allowed value for an OLE status code. |
static int |
OLECMDERR_E_FIRST
The lowest allowed value for an OLE command error code. |
static int |
OLECMDERR_E_NOTSUPPORTED
Command parameter is not recognized as a valid command |
static int |
OLECMDERR_E_UNKNOWNGROUP
Command group parameter is non-NULL but does not specify a recognized command group |
static int |
PERPROP_E_NOPAGEAVAILABLE
COM object does not have an appropriate connection point for the specified IID |
static int |
REGDB_E_CLASSNOTREG
Class not registered. |
static int |
REGDB_E_IIDNOTREG
Interface not registered. |
static int |
RPC_E_CALL_REJECTED
Call was rejected by callee. |
static int |
RPC_E_DISCONNECTED
The object invoked has disconnected from its clients. |
static int |
RPC_E_SERVERCALL_RETRYLATER
The message filter indicated that the application is busy. |
static int |
S_FALSE
Completed without error, but only partial results were obtained. |
static int |
S_OK
Successful completion. |
static int |
SELFREG_E_CLASS
The server was unable to complete the registration of all the object classes. |
static int |
SELFREG_E_TYPELIB
The server was unable to complete the registration of all the type libraries used by its classes. |
Fields inherited from class com.jniwrapper.Parameter |
---|
LICENSE_TYPE, V |
Constructor Summary | |
---|---|
HResult()
Creates the instance of the HResult |
|
HResult(int value)
Creates instance of the HResult with the specified value |
|
HResult(com.jniwrapper.IntegerParameter value)
Creates instance of the HResult with the specified value |
|
HResult(short severity,
short facility,
boolean isError)
Creates instance of the HResult with the specified value |
Method Summary | |
---|---|
java.lang.Object |
clone()
Creates and returns a copy of this object. |
static java.lang.String |
decodeHResult(int hResult)
Returns name (if found) and description of the error that corresponds to the specified code |
short |
getFacility()
Returns facility code |
short |
getSCode()
Returns facility's status code |
boolean |
isError()
Specifies whether this is error or not |
Methods inherited from class com.jniwrapper.Int32 |
---|
getLength, getValue, read, setValue, write |
Methods inherited from class com.jniwrapper.bx |
---|
equals, getDebugInfo, hashCode, toLong, toString |
Methods inherited from class com.jniwrapper.Parameter |
---|
|
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int S_OK
public static final int S_FALSE
public static final int E_NOTIMPL
public static final int E_OUTOFMEMORY
public static final int E_INVALIDARG
public static final int E_NOINTERFACE
public static final int E_POINTER
public static final int E_HANDLE
public static final int E_ABORT
public static final int E_FAIL
public static final int E_UNEXPECTED
public static final int E_ACCESSDENIED
public static final int CLASS_E_NOAGGREGATION
public static final int CLASS_E_CLASSNOTAVAILABLE
public static final int CLASS_E_NOTLICENSED
public static final int CONNECT_E_FIRST
public static final int CONNECT_E_NOCONNECTION
public static final int CONNECT_E_ADVISELIMIT
public static final int CONNECT_E_CANNOTCONNECT
public static final int CONNECT_E_OVERRIDDEN
public static final int SELFREG_E_TYPELIB
public static final int SELFREG_E_CLASS
public static final int PERPROP_E_NOPAGEAVAILABLE
public static final int INET_E_INVALID_URL
public static final int INET_E_NO_SESSION
public static final int INET_E_CANNOT_CONNECT
public static final int INET_E_RESOURCE_NOT_FOUND
public static final int INET_E_OBJECT_NOT_FOUND
public static final int INET_E_DATA_NOT_AVAILABLE
public static final int INET_E_DOWNLOAD_FAILURE
public static final int INET_E_AUTHENTICATION_REQUIRED
public static final int INET_E_NO_VALID_MEDIA
public static final int INET_E_CONNECTION_TIMEOUT
public static final int INET_E_INVALID_REQUEST
public static final int INET_E_UNKNOWN_PROTOCOL
public static final int INET_E_SECURITY_PROBLEM
public static final int INET_E_CANNOT_LOAD_DATA
public static final int INET_E_CANNOT_INSTANTIATE_OBJECT
public static final int INET_E_USE_DEFAULT_PROTOCOLHANDLER
public static final int INET_E_DEFAULT_ACTION
public static final int INET_E_USE_DEFAULT_SETTING
public static final int INET_E_QUERYOPTION_UNKNOWN
public static final int INET_E_REDIRECTING
public static final int INET_E_REDIRECT_FAILED
public static final int INET_E_REDIRECT_TO_DIR
public static final int INET_E_CANNOT_LOCK_REQUEST
public static final int INET_E_USE_EXTEND_BINDING
public static final int INET_E_ERROR_FIRST
public static final int INET_E_ERROR_LAST
public static final int INET_E_CODE_DOWNLOAD_DECLINED
public static final int INET_E_RESULT_DISPATCHED
public static final int INET_E_CANNOT_REPLACE_SFP_FILE
public static final int DISP_E_UNKNOWNINTERFACE
public static final int DISP_E_MEMBERNOTFOUND
public static final int DISP_E_PARAMNOTFOUND
public static final int DISP_E_TYPEMISMATCH
public static final int DISP_E_UNKNOWNNAME
public static final int DISP_E_NONAMEDARGS
public static final int DISP_E_BADVARTYPE
public static final int DISP_E_EXCEPTION
public static final int DISP_E_OVERFLOW
public static final int DISP_E_BADINDEX
public static final int DISP_E_UNKNOWNLCID
public static final int DISP_E_ARRAYISLOCKED
public static final int DISP_E_BADPARAMCOUNT
public static final int DISP_E_PARAMNOTOPTIONAL
public static final int DISP_E_BADCALLEE
public static final int DISP_E_NOTACOLLECTION
public static final int DISP_E_DIVBYZERO
public static final int CO_E_NOTINITIALIZED
public static final int CO_E_ALREADYINITIALIZED
public static final int CO_E_CANTDETERMINECLASS
public static final int CO_E_CLASSSTRING
public static final int CO_E_IIDSTRING
public static final int CO_E_APPNOTFOUND
public static final int CO_E_APPSINGLEUSE
public static final int CO_E_ERRORINAPP
public static final int CO_E_DLLNOTFOUND
public static final int CO_E_ERRORINDLL
public static final int CO_E_WRONGOSFORAPP
public static final int CO_E_OBJNOTREG
public static final int CO_E_OBJISREG
public static final int CO_E_OBJNOTCONNECTED
public static final int CO_E_APPDIDNTREG
public static final int CO_E_RELEASED
public static final int RPC_E_DISCONNECTED
public static final int RPC_E_SERVERCALL_RETRYLATER
public static final int RPC_E_CALL_REJECTED
public static final int OLE_E_FIRST
public static final int OLE_E_LAST
public static final int OLE_S_FIRST
public static final int OLE_S_LAST
public static final int OLE_E_OLEVERB
public static final int OLE_E_ADVF
public static final int OLE_E_ENUM_NOMORE
public static final int OLE_E_ADVISENOTSUPPORTED
public static final int OLE_E_NOCONNECTION
public static final int OLE_E_NOTRUNNING
public static final int OLE_E_NOCACHE
public static final int OLE_E_BLANK
public static final int OLE_E_CLASSDIFF
public static final int OLE_E_CANT_GETMONIKER
public static final int OLE_E_CANT_BINDTOSOURCE
public static final int OLE_E_STATIC
public static final int OLE_E_PROMPTSAVECANCELLED
public static final int OLE_E_INVALIDRECT
public static final int OLE_E_WRONGCOMPOBJ
public static final int OLE_E_INVALIDHWND
public static final int OLE_E_NOT_INPLACEACTIVE
public static final int OLE_E_CANTCONVERT
public static final int OLE_E_NOSTORAGE
public static final int REGDB_E_CLASSNOTREG
public static final int REGDB_E_IIDNOTREG
public static final int OLECMDERR_E_FIRST
public static final int OLECMDERR_E_NOTSUPPORTED
public static final int OLECMDERR_E_UNKNOWNGROUP
Constructor Detail |
---|
public HResult()
HResult
public HResult(int value)
HResult
with the specified value
value
- Error or state codepublic HResult(com.jniwrapper.IntegerParameter value)
HResult
with the specified value
value
- Error or state codepublic HResult(short severity, short facility, boolean isError)
HResult
with the specified value
severity
- The facility's status code. A code describing the error or warning.facility
- The facility code. Specifies the software component that defines this error code.isError
- TRUE if success and FALSE IF failure.Method Detail |
---|
public short getSCode()
public short getFacility()
public boolean isError()
public java.lang.Object clone()
clone
in class com.jniwrapper.Int32
public static java.lang.String decodeHResult(int hResult)
hResult
- HResult
code
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |