次の方法で共有


RunError Class

  • java.lang.Object
    • com.azure.ai.agents.persistent.models.RunError

Implements

public final class RunError
implements JsonSerializable<RunError>

The details of an error as encountered by an agent thread run.

Method Summary

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

Reads an instance of RunError from the JsonReader.

String getCode()

Get the code property: The status for the error.

String getMessage()

Get the message property: The human-readable text associated with the error.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static RunError fromJson(JsonReader jsonReader)

Reads an instance of RunError from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RunError if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getCode

public String getCode()

Get the code property: The status for the error.

Returns:

the code value.

getMessage

public String getMessage()

Get the message property: The human-readable text associated with the error.

Returns:

the message value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to