public class

EsriServiceException

extends RuntimeException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ com.esri.core.io.EsriServiceException

Class Overview

An EsriServiceException is an exception indicating that an operation failed when processing a REST request.

Summary

Public Constructors
EsriServiceException(String msg)
Instantiates an EsriServiceException with the given error message.
EsriServiceException(int code, String msg)
Instantiates an EsriServiceException with the given error message and code.
Public Methods
static EsriServiceException fromGeotriggerJson(String response)
static EsriServiceException fromJson(JsonParser parser)
Retrieves a service error from a Json response.
int getCode()
Gets the error code.
String getMessage()
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public EsriServiceException (String msg)

Instantiates an EsriServiceException with the given error message.

Parameters
msg String: the error message.

public EsriServiceException (int code, String msg)

Instantiates an EsriServiceException with the given error message and code.

Parameters
code int: the error code.
msg String: the error message.

Public Methods

public static EsriServiceException fromGeotriggerJson (String response)

Parameters
response String
Returns
EsriServiceException

public static EsriServiceException fromJson (JsonParser parser)

Retrieves a service error from a Json response.

Parameters
parser JsonParser
Returns
EsriServiceException the Exception or null if there is not error information.

public int getCode ()

Gets the error code.

Returns
int the error code.

public String getMessage ()

Returns
String