ErrorMessage Class

  • java.lang.Object
    • com.azure.resourcemanager.deviceprovisioningservices.models.ErrorMessage

Implements

public final class ErrorMessage
implements JsonSerializable<ErrorMessage>

Error response containing message and code.

Method Summary

Modifier and Type Method and Description
String code()

Get the code property: standard error code.

String details()

Get the details property: detailed summary of error.

static ErrorMessage fromJson(JsonReader jsonReader)

Reads an instance of ErrorMessage from the JsonReader.

String message()

Get the message property: standard error description.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

code

public String code()

Get the code property: standard error code.

Returns:

the code value.

details

public String details()

Get the details property: detailed summary of error.

Returns:

the details value.

fromJson

public static ErrorMessage fromJson(JsonReader jsonReader)

Reads an instance of ErrorMessage from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

message

public String message()

Get the message property: standard error description.

Returns:

the message value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to