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 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

    • getType

      public String getType()
      Gets the type of addition info.
      Returns:
      the type of addition info.
    • getInfo

      public Object getInfo()
      Gets the additional info.
      Returns:
      the additional info.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<AdditionalInfo>
      Throws:
      IOException
    • fromJson

      public static AdditionalInfo fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      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:
      IOException - If an AdditionalInfo fails to be read from the jsonReader.