com.esri.arcgis.interop
Class AutomationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by com.esri.arcgis.interop.AutomationException
All Implemented Interfaces:
Serializable

public class AutomationException
extends IOException

The AutomationException class represents an Exception returned from a remote COM Component.

See Also:
Serialized Form

Constructor Summary
AutomationException(long code, String source, String description)
          Constructs an automation exception
AutomationException(Throwable e)
           
 
Method Summary
 long getCode()
          Returns the error code of the exception
 String getDescription()
          Returns the description of the exception
 String getSource()
          Returns the source of the exception
static void setExceptionInterceptor(com.esri.arcgis.interop.ExceptionInterceptor exceptionInterceptor)
           
 String toString()
          Returns this exception as a string
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AutomationException

public AutomationException(long code,
                           String source,
                           String description)
Constructs an automation exception

Parameters:
code - the error code.
source - the error source.
description - the error description.

AutomationException

public AutomationException(Throwable e)
Method Detail

getSource

public String getSource()
Returns the source of the exception

Returns:
The source of the exception

getDescription

public String getDescription()
Returns the description of the exception

Returns:
The description of the exception

getCode

public long getCode()
Returns the error code of the exception

Returns:
The error code of the exception

toString

public String toString()
Returns this exception as a string

Overrides:
toString in class Throwable
Returns:
The error code and description of the exception

setExceptionInterceptor

public static void setExceptionInterceptor(com.esri.arcgis.interop.ExceptionInterceptor exceptionInterceptor)