Package com.esri.arcgisruntime.io
Class JsonEmbeddedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- com.esri.arcgisruntime.io.JsonEmbeddedException
-
- All Implemented Interfaces:
Serializable
public final class JsonEmbeddedException extends IOException
Represents a json embedded error from a service response, typically indicates a token secured service that wasn't properly authenticated.- Since:
- 100.0.0
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JsonEmbeddedException
fromJson(String json)
Deserializes a JsonEmbeddedException from a JSON string.int
getCode()
Gets the error code (e.g.String[]
getDetails()
Gets the further details of the error.String
getMessage()
Gets the error message.byte[]
getResponseData()
Gets the response data associated with the exception.void
setResponseData(byte[] responseData)
Sets the response data associated with the exception.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
getCode
public int getCode()
Gets the error code (e.g. 498 = invalid token)- Returns:
- the error code
- Since:
- 100.0.0
-
getMessage
public String getMessage()
Gets the error message.- Overrides:
getMessage
in classThrowable
- Returns:
- the error message
- Since:
- 100.0.0
-
getDetails
public String[] getDetails()
Gets the further details of the error.- Returns:
- the details of the error
- Since:
- 100.0.0
-
getResponseData
public byte[] getResponseData()
Gets the response data associated with the exception.- Returns:
- the response data as a byte array
- Since:
- 100.0.0
-
setResponseData
public void setResponseData(byte[] responseData)
Sets the response data associated with the exception.- Parameters:
responseData
-- Since:
- 100.0.0
-
fromJson
public static JsonEmbeddedException fromJson(String json)
Deserializes a JsonEmbeddedException from a JSON string.- Parameters:
json
- the JSON string to deserialize- Returns:
- a JsonEmbeddedException or null
- Since:
- 100.0.0
-
-