com.esri.core.map
Class FeatureEditError

java.lang.Object
  extended by com.esri.core.map.FeatureEditError
All Implemented Interfaces:
Serializable

public class FeatureEditError
extends Object
implements Serializable

An error object indicating that an operation failed when processing a REST request.

Since:
1.0
See Also:
Serialized Form

Constructor Summary
FeatureEditError(int code, String msg)
          Instantiates an EsriServiceException with the given error description and code.
 
Method Summary
static FeatureEditError fromJson(org.codehaus.jackson.JsonParser parser)
          Decodes objects from JSON representation.
 int getCode()
          Gets the error code.
 String getDescription()
          Gets the description of the error.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FeatureEditError

public FeatureEditError(int code,
                        String msg)
Instantiates an EsriServiceException with the given error description and code.

Parameters:
code - the error code.
msg - the error description.
Since:
1.0
Method Detail

getCode

public int getCode()
Gets the error code.

Returns:
the error code.
Since:
1.0

getDescription

public String getDescription()
Gets the description of the error.

Returns:
the description string.
Since:
1.0

fromJson

public static FeatureEditError fromJson(org.codehaus.jackson.JsonParser parser)
                                 throws Exception
Decodes objects from JSON representation.

Parameters:
parser - the Jackson parser holding the JSON data.
Returns:
the decoded object from JSON representation.
Throws:
Exception
Since:
1.0

toString

public String toString()
Overrides:
toString in class Object
Since:
1.0


Copyright © 2012. All Rights Reserved.