|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.esri.core.io.EsriServiceException
public class EsriServiceException
An EsriServiceException is an exception indicating that an operation failed when processing a REST request.
| Constructor Summary | |
|---|---|
EsriServiceException(int code,
String msg)
Instantiates an EsriServiceException with the given error message and code. |
|
EsriServiceException(String msg)
Instantiates an EsriServiceException with the given error message. |
|
| Method Summary | |
|---|---|
static EsriServiceException |
fromJson(org.codehaus.jackson.JsonParser parser)
Retrieves a service error from a Json response. |
int |
getCode()
Gets the error code. |
String |
getMessage()
|
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EsriServiceException(String msg)
msg - the error message.
public EsriServiceException(int code,
String msg)
code - the error code.msg - the error message.| Method Detail |
|---|
public int getCode()
public String getMessage()
getMessage in class Throwablepublic static EsriServiceException fromJson(org.codehaus.jackson.JsonParser parser)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||