次の方法で共有


ErrorInfo Class

  • java.lang.Object
    • com.azure.resourcemanager.datamigration.models.ErrorInfo

Implements

public final class ErrorInfo
implements JsonSerializable<ErrorInfo>

Error details.

Constructor Summary

Constructor Description
ErrorInfo()

Creates an instance of ErrorInfo class.

Method Summary

Modifier and Type Method and Description
String code()

Get the code property: Error code.

static ErrorInfo fromJson(JsonReader jsonReader)

Reads an instance of ErrorInfo from the JsonReader.

String message()

Get the message property: Error message.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

ErrorInfo

public ErrorInfo()

Creates an instance of ErrorInfo class.

Method Details

code

public String code()

Get the code property: Error code.

Returns:

the code value.

fromJson

public static ErrorInfo fromJson(JsonReader jsonReader)

Reads an instance of ErrorInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ErrorInfo 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 ErrorInfo.

message

public String message()

Get the message property: Error message.

Returns:

the message value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to