com.esri.android.map.event
Class OnStatusChangedListener.EsriStatusException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.esri.android.map.event.OnStatusChangedListener.EsriStatusException
All Implemented Interfaces:
EsriErrorCode, Serializable
Enclosing interface:
OnStatusChangedListener

public static class OnStatusChangedListener.EsriStatusException
extends Exception
implements EsriErrorCode

Defines the detailed information about the STATUS.INITIALIZATION_FAILED or STATUS.LAYER_LOADING_FAILED.

See Also:
Serialized Form

Field Summary
static int INIT_FAILED
          Error code: -1000
static int INIT_FAILED_ARCGIS_DYNAMIC_LAYER
          Error code: -1002
static int INIT_FAILED_ARCGIS_FEATURE_LAYER
          Error code: -1004
static int INIT_FAILED_ARCGIS_IMAGE_LAYER
          Error code: -1003
static int INIT_FAILED_ARCGIS_TILE_LAYER
          Error code: -1001
static int INIT_FAILED_BAD_URL
          Error code: -4000
static int INIT_FAILED_BING_LAYER
          Error code: -1005
static int INIT_FAILED_GRAPHICS_LAYER
          Error code: -1006
static int INIT_FAILED_LAYER_LOADING
          Error code: -3010
static int INIT_FAILED_MAPVIEW
          Error code: -2000
static int INIT_FAILED_MAPVIEW_BASE_LAYER
          Error code: -2001
static int INIT_FAILED_UNSUPPORTED_LAYER
          Error code: -3002
static int INIT_FAILED_WEBMAP
          Error code: -3000
static int INIT_FAILED_WEBMAP_UNSUPPORTED_LAYER
          Error code: -3001
static int SPATIAL_REFERENCE_INVALID
          Error code: -4010
 
Constructor Summary
OnStatusChangedListener.EsriStatusException(int code)
          Instantiates an object of EsriStatusException with the given error code.
 
Method Summary
 int getCode()
          Gets the error code.
 String getDescription()
          Returns the error description
 String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INIT_FAILED

public static final int INIT_FAILED
Error code: -1000

Error description: The layer or MapView can not be initialized.

See Also:
Constant Field Values

INIT_FAILED_ARCGIS_TILE_LAYER

public static final int INIT_FAILED_ARCGIS_TILE_LAYER
Error code: -1001

Error description: The ArcGISTiledMapServiceLayer can not be initialized.

See Also:
Constant Field Values

INIT_FAILED_ARCGIS_DYNAMIC_LAYER

public static final int INIT_FAILED_ARCGIS_DYNAMIC_LAYER
Error code: -1002

Error description: The ArcGISDynamicMapServicelayer can not be initialized.

See Also:
Constant Field Values

INIT_FAILED_ARCGIS_IMAGE_LAYER

public static final int INIT_FAILED_ARCGIS_IMAGE_LAYER
Error code: -1003

Error description: The ArcGISImageServiceLayer can not be initialized.

See Also:
Constant Field Values

INIT_FAILED_ARCGIS_FEATURE_LAYER

public static final int INIT_FAILED_ARCGIS_FEATURE_LAYER
Error code: -1004

Error description: The ArcGISFeaturelayer can not be initialized.

See Also:
Constant Field Values

INIT_FAILED_BING_LAYER

public static final int INIT_FAILED_BING_LAYER
Error code: -1005

Error description: The BingMapslayer can not be initialized.

See Also:
Constant Field Values

INIT_FAILED_GRAPHICS_LAYER

public static final int INIT_FAILED_GRAPHICS_LAYER
Error code: -1006

Error description: The GraphicsLayer can not be initialized.

See Also:
Constant Field Values

INIT_FAILED_MAPVIEW

public static final int INIT_FAILED_MAPVIEW
Error code: -2000

Error description: The MapView can not initialized.

See Also:
Constant Field Values

INIT_FAILED_MAPVIEW_BASE_LAYER

public static final int INIT_FAILED_MAPVIEW_BASE_LAYER
Error code: -2001

Error description: The base layer of the MapView can not be initialized.

See Also:
Constant Field Values

INIT_FAILED_WEBMAP

public static final int INIT_FAILED_WEBMAP
Error code: -3000

Error description: The MapView can not be initialized with given WebMap URL.

See Also:
Constant Field Values

INIT_FAILED_WEBMAP_UNSUPPORTED_LAYER

public static final int INIT_FAILED_WEBMAP_UNSUPPORTED_LAYER
Error code: -3001

Error description: The MapView can not be initialized with given WebMap URL, one of the WebMap Layer is unsupported.

See Also:
Constant Field Values

INIT_FAILED_UNSUPPORTED_LAYER

public static final int INIT_FAILED_UNSUPPORTED_LAYER
Error code: -3002

Error description: A layer can not be loaded into the map due to being an unsupported type.

See Also:
Constant Field Values

INIT_FAILED_LAYER_LOADING

public static final int INIT_FAILED_LAYER_LOADING
Error code: -3010

Error description: The layer can not be loaded into map due to the spatial reference conflict etc.

See Also:
Constant Field Values

INIT_FAILED_BAD_URL

public static final int INIT_FAILED_BAD_URL
Error code: -4000

Error description: The layer can not be initialized due to the bad URL .

See Also:
Constant Field Values

SPATIAL_REFERENCE_INVALID

public static final int SPATIAL_REFERENCE_INVALID
Error code: -4010

Error description: The layer's spatial reference is invalid.

See Also:
Constant Field Values
Constructor Detail

OnStatusChangedListener.EsriStatusException

public OnStatusChangedListener.EsriStatusException(int code)
Instantiates an object of EsriStatusException with the given error code.

Parameters:
code - the error code.
Method Detail

getCode

public int getCode()
Gets the error code.

Specified by:
getCode in interface EsriErrorCode
Returns:
Returns the code.

toString

public String toString()
Overrides:
toString in class Throwable

getDescription

public String getDescription()
Description copied from interface: EsriErrorCode
Returns the error description

Specified by:
getDescription in interface EsriErrorCode


Copyright © 2012. All Rights Reserved.