ErrorDetails Class

  • java.lang.Object
    • com.azure.developer.loadtesting.models.ErrorDetails

Implements

public final class ErrorDetails
implements JsonSerializable<ErrorDetails>

Error details if there is any failure in load test run.

Method Summary

Modifier and Type Method and Description
static ErrorDetails fromJson(JsonReader jsonReader)

Reads an instance of ErrorDetails from the JsonReader.

String getCode()

Get the code property: Error code if there is any failure in load test run.

String getMessage()

Get the message property: Error details in case test run was not successfully run.

Map<String,List<String>> getProperties()

Get the properties property: A dictionary for storing additional error information for better context.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static ErrorDetails fromJson(JsonReader jsonReader)

Reads an instance of ErrorDetails from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

getCode

public String getCode()

Get the code property: Error code if there is any failure in load test run.

Returns:

the code value.

getMessage

public String getMessage()

Get the message property: Error details in case test run was not successfully run.

Returns:

the message value.

getProperties

public Map<String,List<String>> getProperties()

Get the properties property: A dictionary for storing additional error information for better context. Each key is a property name (e.g., "Description", "Resolution", "Category", "Region"), and its value is an array of strings with relevant details.

Returns:

the properties value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to