Esri Geoportal Server
1.2.9

com.esri.gpt.agp.client
Class AgpError

java.lang.Object
  extended by com.esri.gpt.agp.client.AgpError

public class AgpError
extends Object

An ArcGIS Portal communication error object.


Constructor Summary
AgpError()
          Default constructor.
 
Method Summary
 int getCode()
          Gets the error code.
 String[] getDetails()
          Gets the error details.
 String getMessage()
          Gets the error message.
 void parse(org.json.JSONObject jsoResponse)
          Parse the JSON response.
 void setCode(int code)
          Sets the error code.
 void setDetails(String[] details)
          Sets the error details.
 void setMessage(String message)
          Sets the error message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgpError

public AgpError()
Default constructor.

Method Detail

getCode

public int getCode()
Gets the error code.

Returns:
the error code

setCode

public void setCode(int code)
Sets the error code.

Parameters:
code - the error code

getDetails

public String[] getDetails()
Gets the error details.

Returns:
the error details

setDetails

public void setDetails(String[] details)
Sets the error details.

Parameters:
details - the error details

getMessage

public String getMessage()
Gets the error message.

Returns:
the error message

setMessage

public void setMessage(String message)
Sets the error message.

Parameters:
message - the error message

parse

public void parse(org.json.JSONObject jsoResponse)
           throws Exception
Parse the JSON response.

Parameters:
jsoResponse - the JSON response
Throws:
Exception - if an exception occurs

Esri Geoportal Server
1.2.9

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.