OperationError Class

  • java.lang.Object
    • com.azure.resourcemanager.devtestlabs.models.OperationError

Implements

public final class OperationError
implements JsonSerializable<OperationError>

Error details for the operation in case of a failure.

Method Summary

Modifier and Type Method and Description
String code()

Get the code property: The error code of the operation error.

static OperationError fromJson(JsonReader jsonReader)

Reads an instance of OperationError from the JsonReader.

String message()

Get the message property: The error message of the operation error.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

code

public String code()

Get the code property: The error code of the operation error.

Returns:

the code value.

fromJson

public static OperationError fromJson(JsonReader jsonReader)

Reads an instance of OperationError from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

message

public String message()

Get the message property: The error message of the operation error.

Returns:

the message value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to