Package com.sun.jna.platform.win32.COM
Klasse COMInvokeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sun.jna.platform.win32.COM.COMException
com.sun.jna.platform.win32.COM.COMInvokeException
- Alle implementierten Schnittstellen:
Serializable
Exception class for error origination from an COM invoke
- Siehe auch:
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungInstantiates a new automation exception.COMInvokeException
(String message) Instantiates a new automation exception.COMInvokeException
(String message, WinNT.HRESULT hresult, Integer errorArg, String description, Integer helpContext, String helpFile, Integer scode, String source, Integer wCode) Instantiates a new automation exception.COMInvokeException
(String message, Throwable cause) Instantiates a new automation exception.COMInvokeException
(Throwable cause) Instantiates a new automation exception. -
Methodenübersicht
Von Klasse geerbte Methoden com.sun.jna.platform.win32.COM.COMException
getHresult, matchesErrorCode
Von Klasse geerbte Methoden java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Konstruktordetails
-
COMInvokeException
public COMInvokeException()Instantiates a new automation exception. -
COMInvokeException
Instantiates a new automation exception.- Parameter:
message
- the message
-
COMInvokeException
Instantiates a new automation exception.- Parameter:
cause
- the cause
-
COMInvokeException
Instantiates a new automation exception.- Parameter:
message
- the messagecause
- the cause
-
COMInvokeException
public COMInvokeException(String message, WinNT.HRESULT hresult, Integer errorArg, String description, Integer helpContext, String helpFile, Integer scode, String source, Integer wCode) Instantiates a new automation exception.- Parameter:
message
- exception messagehresult
- hresult of the invoke callerrorArg
- the position of the argument that caused the errordescription
- The exception description to display. If no description is available, use null.helpContext
- The help context ID.helpFile
- The fully qualified help file path. If no Help is available, use null.scode
- A return value that describes the error. Either this field or wCode (but not both) must be filled in; the other must be set to 0. (16-bit Windows versions only.)source
- The name of the exception source. Typically, this is an application name. This field should be filled in by the implementor of IDispatch.wCode
- The error code. Error codes should be greater than 1000. Either this field or the scode field must be filled in; the other must be set to 0.
-
-
Methodendetails
-
getErrorArg
Gets the arg err.- Gibt zurück:
- the arg err
-
getWCode
- Gibt zurück:
- The error code. Error codes should be greater than 1000. Either this field or the scode field must be filled in; the other must be set to 0. It is NULL if no exception info was created
-
getSource
- Gibt zurück:
- The name of the exception source. Typically, this is an application name. This field should be filled in by the implementor of IDispatch. NULL if no exception info was created
-
getDescription
- Gibt zurück:
- The exception description to display. If no description is available, use null.
-
getHelpFile
- Gibt zurück:
- The fully qualified help file path. If no Help is available, use null.
-
getHelpContext
- Gibt zurück:
- The help context ID or NULL if not present
-
getScode
- Gibt zurück:
- A return value that describes the error. Either this field or wCode (but not both) must be filled in; the other must be set to 0. (16-bit Windows versions only.) NULL if no exception info was created.
-