Aracılığıyla paylaş


ServiceErrorDetail Class

  • java.lang.Object
    • com.azure.resourcemanager.quota.models.ServiceErrorDetail

Implements

public final class ServiceErrorDetail
implements JsonSerializable<ServiceErrorDetail>

Error details.

Constructor Summary

Constructor Description
ServiceErrorDetail()

Creates an instance of ServiceErrorDetail class.

Method Summary

Modifier and Type Method and Description
String code()

Get the code property: Error code.

static ServiceErrorDetail fromJson(JsonReader jsonReader)

Reads an instance of ServiceErrorDetail 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

ServiceErrorDetail

public ServiceErrorDetail()

Creates an instance of ServiceErrorDetail class.

Method Details

code

public String code()

Get the code property: Error code.

Returns:

the code value.

fromJson

public static ServiceErrorDetail fromJson(JsonReader jsonReader)

Reads an instance of ServiceErrorDetail from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

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