次の方法で共有


RunStepError Class

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

Implements

public final class RunStepError
implements JsonSerializable<RunStepError>

The error information associated with a failed run step.

Method Summary

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

Reads an instance of RunStepError from the JsonReader.

RunStepErrorCode getCode()

Get the code property: The error code for this error.

String getMessage()

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

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static RunStepError fromJson(JsonReader jsonReader)

Reads an instance of RunStepError from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of RunStepError 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 RunStepErrorCode getCode()

Get the code property: The error code for this error.

Returns:

the code value.

getMessage

public String getMessage()

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

Returns:

the message value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to