com.esri.arcgis.gisclient
Class WMSServiceExceptionHandler

java.lang.Object
  extended by com.esri.arcgis.gisclient.WMSServiceExceptionHandler
All Implemented Interfaces:
IWMSServiceExceptionHandler, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class WMSServiceExceptionHandler
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IWMSServiceExceptionHandler

WMS Service Exception Handler.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also:
Serialized Form

Constructor Summary
WMSServiceExceptionHandler()
          Constructs a WMSServiceExceptionHandler using ArcGIS Engine.
WMSServiceExceptionHandler(Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
WMSServiceExceptionHandler theWMSServiceExceptionHandler = (WMSServiceExceptionHandler) obj;
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
static String getClsid()
          getClsid.
 String getExceptionCode(int index)
          WMS service exception code at the given index.
 int getExceptionCount()
          Number of exceptions.
 String getExceptionDescription(int index)
          WMS service exception description at the given index.
 int hashCode()
          the hashcode for this object
 void parseExceptions(String fileOrURL)
          Parses the response to the give URL for any WMS error codes and descriptions.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef
getJintegraDispatch, release
 

Constructor Detail

WMSServiceExceptionHandler

public WMSServiceExceptionHandler()
                           throws IOException,
                                  UnknownHostException
Constructs a WMSServiceExceptionHandler using ArcGIS Engine.

Throws:
IOException - if there are interop problems
UnknownHostException - if there are interop problems

WMSServiceExceptionHandler

public WMSServiceExceptionHandler(Object obj)
                           throws IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
WMSServiceExceptionHandler theWMSServiceExceptionHandler = (WMSServiceExceptionHandler) obj;

Construct a WMSServiceExceptionHandler using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to WMSServiceExceptionHandler.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
IOException - if there are interop problems
Method Detail

getClsid

public static String getClsid()
getClsid.


equals

public boolean equals(Object o)
Compare this object with another

Overrides:
equals in class Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class Object

parseExceptions

public void parseExceptions(String fileOrURL)
                     throws IOException,
                            AutomationException
Parses the response to the give URL for any WMS error codes and descriptions.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
parseExceptions in interface IWMSServiceExceptionHandler
Parameters:
fileOrURL - The fileOrURL (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getExceptionCount

public int getExceptionCount()
                      throws IOException,
                             AutomationException
Number of exceptions.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getExceptionCount in interface IWMSServiceExceptionHandler
Returns:
The count
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getExceptionCode

public String getExceptionCode(int index)
                        throws IOException,
                               AutomationException
WMS service exception code at the given index.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getExceptionCode in interface IWMSServiceExceptionHandler
Parameters:
index - The index (in)
Returns:
The wmsErrorCode
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getExceptionDescription

public String getExceptionDescription(int index)
                               throws IOException,
                                      AutomationException
WMS service exception description at the given index.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Specified by:
getExceptionDescription in interface IWMSServiceExceptionHandler
Parameters:
index - The index (in)
Returns:
The wmsErrorDescription
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.