Package com.azure.maps.render.models
Class ErrorDetail
java.lang.Object
com.azure.maps.render.models.ErrorDetail
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ErrorDetail>
public final class ErrorDetail
extends Object
implements com.azure.json.JsonSerializable<ErrorDetail>
The error detail.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorDetail
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ErrorDetail from the JsonReader.Get the additionalInfo property: The error additional info.getCode()
Get the code property: The error code.Get the details property: The error details.Get the message property: The error message.Get the target property: The error target.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ErrorDetail
public ErrorDetail()Creates an instance of ErrorDetail class.
-
-
Method Details
-
getCode
Get the code property: The error code.- Returns:
- the code value.
-
getMessage
Get the message property: The error message.- Returns:
- the message value.
-
getTarget
Get the target property: The error target.- Returns:
- the target value.
-
getDetails
Get the details property: The error details.- Returns:
- the details value.
-
getAdditionalInfo
Get the additionalInfo property: The error additional info.- Returns:
- the additionalInfo value.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<ErrorDetail>
- Throws:
IOException
-
fromJson
Reads an instance of ErrorDetail from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ErrorDetail if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException
- If an error occurs while reading the ErrorDetail.
-