Package com.sun.jna.platform.win32.COM
Klasse COMException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sun.jna.platform.win32.COM.COMException
- Alle implementierten Schnittstellen:
Serializable
- Bekannte direkte Unterklassen:
COMInvokeException
Exception class for all COM related classes.
- Autor:
- Tobias Wolf, wolf.tobias@gmx.net
- Siehe auch:
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungInstantiates a new automation exception.COMException(String message) Instantiates a new automation exception.COMException(String message, WinNT.HRESULT hresult) Instantiates a new automation exception.COMException(String message, Throwable cause) Instantiates a new automation exception.COMException(Throwable cause) Instantiates a new automation exception. -
Methodenübersicht
Von Klasse geerbte Methoden java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Konstruktordetails
-
COMException
public COMException()Instantiates a new automation exception. -
COMException
Instantiates a new automation exception.- Parameter:
message- the message
-
COMException
Instantiates a new automation exception.- Parameter:
cause- the cause
-
COMException
Instantiates a new automation exception.- Parameter:
message- the messagecause- the cause
-
COMException
Instantiates a new automation exception.- Parameter:
message- the messagehresult- HRESULT that lead to the creation of the COMException
-
-
Methodendetails
-
getHresult
- Gibt zurück:
- the HRESULT that lead to thie COMException or NULL if the COMException as not directly caused by a native call
-
matchesErrorCode
public boolean matchesErrorCode(int errorCode) - Parameter:
errorCode-- Gibt zurück:
- true if the exception has an associated HRESULT and that HRESULT matches the supplied error code
-