AdditionalInfo Class
- java.
lang. Object - com.
azure. core. management. exception. AdditionalInfo
- com.
Implements
public final class AdditionalInfo
implements JsonSerializable<AdditionalInfo>
An instance of this class provides additional information about a ManagementError.
Constructor Summary
Constructor | Description |
---|---|
AdditionalInfo(String type, Object info) |
Constructs a new AdditionalInfo object. |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Additional |
fromJson(JsonReader jsonReader)
Reads a JSON stream into an AdditionalInfo. |
Object |
getInfo()
Gets the additional info. |
String |
getType()
Gets the type of addition info. |
Json |
toJson(JsonWriter jsonWriter) |
String | toString() |
Methods inherited from java.lang.Object
Constructor Details
AdditionalInfo
public AdditionalInfo(String type, Object info)
Constructs a new AdditionalInfo object.
Parameters:
type
- the type of addition info.
info
- the additional info.
Method Details
fromJson
public static AdditionalInfo fromJson(JsonReader jsonReader)
Reads a JSON stream into an AdditionalInfo.
Parameters:
jsonReader
- The JsonReader being read.
Returns:
The AdditionalInfo that the JSON stream represented, or null if it pointed to JSON null.
Throws:
getInfo
public Object getInfo()
Gets the additional info.
Returns:
the additional info.
getType
public String getType()
Gets the type of addition info.
Returns:
the type of addition info.
toJson
toString
public String toString()
Overrides:
AdditionalInfo.toString()