public class COMException
extends java.lang.RuntimeException
Constructor and Description |
---|
COMException()
Instantiates a new automation exception.
|
COMException(java.lang.String message)
Instantiates a new automation exception.
|
COMException(java.lang.String message,
java.lang.Throwable cause)
Instantiates a new automation exception.
|
COMException(java.lang.String message,
WinNT.HRESULT hresult)
Instantiates a new automation exception.
|
COMException(java.lang.Throwable cause)
Instantiates a new automation exception.
|
Modifier and Type | Method and Description |
---|---|
WinNT.HRESULT |
getHresult() |
boolean |
matchesErrorCode(int errorCode) |
public COMException()
public COMException(java.lang.String message)
message
- the messagepublic COMException(java.lang.Throwable cause)
cause
- the causepublic COMException(java.lang.String message, java.lang.Throwable cause)
message
- the messagecause
- the causepublic COMException(java.lang.String message, WinNT.HRESULT hresult)
message
- the messagehresult
- HRESULT that lead to the creation of the COMExceptionpublic WinNT.HRESULT getHresult()
public boolean matchesErrorCode(int errorCode)
errorCode
-