AdditionalInfo Class

  • java.lang.Object
    • com.azure.core.management.exception.AdditionalInfo

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 AdditionalInfo fromJson(JsonReader jsonReader)

Reads a JSON stream into an AdditionalInfo.

Object getInfo()

Gets the additional info.

String getType()

Gets the type of addition info.

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

IOException

- If an AdditionalInfo fails to be read from the jsonReader.

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

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

toString

public String toString()

Overrides:

AdditionalInfo.toString()

Applies to