java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.esri.arcgisruntime.io.JsonEmbeddedException
- All Implemented Interfaces:
Serializable
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:
-
Method Summary
Modifier and TypeMethodDescriptionstatic JsonEmbeddedException
Deserializes a JsonEmbeddedException from a JSON string.int
getCode()
Gets the error code (e.g.String[]
Gets the further details of the error.Gets the error message.byte[]
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 Details
-
getCode
public int getCode()Gets the error code (e.g. 498 = invalid token)- Returns:
- the error code
- Since:
- 100.0.0
-
getMessage
Gets the error message.- Overrides:
getMessage
in classThrowable
- Returns:
- the error message
- Since:
- 100.0.0
-
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
Deserializes a JsonEmbeddedException from a JSON string.- Parameters:
json
- the JSON string to deserialize- Returns:
- a JsonEmbeddedException or null
- Since:
- 100.0.0
-