Class AdditionalInfo
java.lang.Object
com.azure.core.management.exception.AdditionalInfo
- All Implemented Interfaces:
com.azure.json.JsonSerializable<AdditionalInfo>
public final class AdditionalInfo
extends Object
implements com.azure.json.JsonSerializable<AdditionalInfo>
An instance of this class provides additional information about a
ManagementError.-
Constructor Summary
ConstructorsConstructorDescriptionAdditionalInfo(String type, Object info) Constructs a newAdditionalInfoobject. -
Method Summary
Modifier and TypeMethodDescriptionstatic AdditionalInfofromJson(com.azure.json.JsonReader jsonReader) Reads a JSON stream into anAdditionalInfo.getInfo()Gets the additional info.getType()Gets the type of addition info.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
AdditionalInfo
Constructs a newAdditionalInfoobject.- Parameters:
type- the type of addition info.info- the additional info.
-
-
Method Details
-
getType
Gets the type of addition info.- Returns:
- the type of addition info.
-
getInfo
Gets the additional info.- Returns:
- the additional info.
-
toString
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<AdditionalInfo>- Throws:
IOException
-
fromJson
Reads a JSON stream into anAdditionalInfo.- Parameters:
jsonReader- TheJsonReaderbeing read.- Returns:
- The
AdditionalInfothat the JSON stream represented, or null if it pointed to JSON null. - Throws:
IOException- If anAdditionalInfofails to be read from thejsonReader.
-