com.jniwrapper.win32.automation
Class AutomationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.jniwrapper.JNIWrapperException
                  extended by com.jniwrapper.win32.com.ComException
                      extended by com.jniwrapper.win32.automation.AutomationException
All Implemented Interfaces:
java.io.Serializable

public class AutomationException
extends ComException

This exception class is used for indicating errors occurred in the COM object during atomation.

Also it provides additional information ExcepInfo about COM exception,
which can occur in the IDispatch.invoke(...) method, called by the Automation class.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.jniwrapper.JNIWrapperException
b, c
 
Constructor Summary
AutomationException(ComException e, ExcepInfo excepInfo)
           
 
Method Summary
 ExcepInfo getExcepInfo()
          Deprecated. use getExceptionInformation()
 ExcepInfo getExceptionInformation()
          Returns additional information about COM exception, stored in the ExcepInfo structure.
 
Methods inherited from class com.jniwrapper.win32.com.ComException
checkResult, createComException, getErrorInfo, getHResult, getHResultHex
 
Methods inherited from class com.jniwrapper.JNIWrapperException
, a, createException, isThrowableConstructorAvailable, throwException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AutomationException

public AutomationException(ComException e,
                           ExcepInfo excepInfo)
Method Detail

getExcepInfo

public ExcepInfo getExcepInfo()
Deprecated. use getExceptionInformation()

Returns additional information about COM exception, stored in the ExcepInfo structure.

Returns:
an instance of ExcepInfo class

getExceptionInformation

public ExcepInfo getExceptionInformation()
Returns additional information about COM exception, stored in the ExcepInfo structure.

Returns:
an instance of ExcepInfo class containingn detailed description of the exception