com.esri.arcgis.geodatabase
Class FieldError

java.lang.Object
  extended by com.esri.arcgis.geodatabase.FieldError
All Implemented Interfaces:
IFieldError, com.esri.arcgis.interop.RemoteObjRef, Serializable

public class FieldError
extends Object
implements com.esri.arcgis.interop.RemoteObjRef, IFieldError

ESRI Field Error object.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

See Also:
Serialized Form

Constructor Summary
FieldError(Object obj)
          Construct a FieldError using a reference to such an object returned from ArcGIS Engine or Server.
 
Method Summary
 boolean equals(Object o)
          Compare this object with another
 int getFieldError()
          Resets the enumeration sequence to the beginning.
 int getFieldIndex()
          Field index for the current field error.
 int hashCode()
          the hashcode for this object
 
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

FieldError

public FieldError(Object obj)
           throws IOException
Construct a FieldError using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to FieldError.
Casting to this class from the return value of a method will not work, as this class represents an abstract class in ArcObjects.
*
FieldError o = (FieldError)obj; // will not work

FieldError o = new FieldError(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server

Throws:
IOException - if there are interop problems FieldError theFieldError = (FieldError) obj;
Method Detail

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

getFieldIndex

public int getFieldIndex()
                  throws IOException,
                         AutomationException
Field index for the current field error.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getFieldIndex in interface IFieldError
Returns:
The fieldIndex
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFieldError

public int getFieldError()
                  throws IOException,
                         AutomationException
Resets the enumeration sequence to the beginning.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Specified by:
getFieldError in interface IFieldError
Returns:
A com.esri.arcgis.geodatabase.esriFieldNameErrorType constant
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.