Klasse COMException

Alle implementierten Schnittstellen:
Serializable
Bekannte direkte Unterklassen:
COMInvokeException

public class COMException extends RuntimeException
Exception class for all COM related classes.
Autor:
Tobias Wolf, [email protected]
Siehe auch:
  • Konstruktordetails

    • COMException

      public COMException()
      Instantiates a new automation exception.
    • COMException

      public COMException(String message)
      Instantiates a new automation exception.
      Parameter:
      message - the message
    • COMException

      public COMException(Throwable cause)
      Instantiates a new automation exception.
      Parameter:
      cause - the cause
    • COMException

      public COMException(String message, Throwable cause)
      Instantiates a new automation exception.
      Parameter:
      message - the message
      cause - the cause
    • COMException

      public COMException(String message, WinNT.HRESULT hresult)
      Instantiates a new automation exception.
      Parameter:
      message - the message
      hresult - HRESULT that lead to the creation of the COMException
  • Methodendetails

    • getHresult

      public WinNT.HRESULT 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