Class COMInvokeException

    • Constructor Detail

      • COMInvokeException

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

        public COMInvokeException​(String message)
        Instantiates a new automation exception.
        Parameters:
        message - the message
      • COMInvokeException

        public COMInvokeException​(Throwable cause)
        Instantiates a new automation exception.
        Parameters:
        cause - the cause
      • COMInvokeException

        public COMInvokeException​(String message,
                                  Throwable cause)
        Instantiates a new automation exception.
        Parameters:
        message - the message
        cause - 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.
        Parameters:
        message - exception message
        hresult - hresult of the invoke call
        errorArg - the position of the argument that caused the error
        description - 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.
    • Method Detail

      • getErrorArg

        public Integer getErrorArg()
        Gets the arg err.
        Returns:
        the arg err
      • getWCode

        public Integer getWCode()
        Returns:
        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

        public String getSource()
        Returns:
        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

        public String getDescription()
        Returns:
        The exception description to display. If no description is available, use null.
      • getHelpFile

        public String getHelpFile()
        Returns:
        The fully qualified help file path. If no Help is available, use null.
      • getHelpContext

        public Integer getHelpContext()
        Returns:
        The help context ID or NULL if not present
      • getScode

        public Integer getScode()
        Returns:
        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.