Share via


ApiError Class

Definition

The ApiError.

public class ApiError : Azure.AI.AgentServer.Contracts.Generated.Common.IUtf8JsonSerializable, System.ClientModel.Primitives.IJsonModel<Azure.AI.AgentServer.Contracts.Generated.Common.ApiError>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.AgentServer.Contracts.Generated.Common.ApiError>
type ApiError = class
    interface IUtf8JsonSerializable
    interface IJsonModel<ApiError>
    interface IPersistableModel<ApiError>
Public Class ApiError
Implements IJsonModel(Of ApiError), IPersistableModel(Of ApiError), IUtf8JsonSerializable
Inheritance
ApiError
Implements

Constructors

Name Description
ApiError()

Initializes a new instance of ApiError for deserialization.

ApiError(String, String, IEnumerable<ApiError>)

Initializes a new instance of ApiError.

ApiError(String, String, String, IReadOnlyList<ApiError>, ApiInnerError, IDictionary<String,BinaryData>)

Initializes a new instance of ApiError.

Properties

Name Description
Code

The error code.

Details

Additional details about the error.

Innererror

The inner error, if any.

Message

A human-readable description of the error.

Target

The target of the error, if applicable.

Methods

Name Description
DeserializeApiError(JsonElement, ModelReaderWriterOptions)
FromResponse(Response)

Deserializes the model from a raw response.

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
ToRequestContent()

Convert into a RequestContent.

Explicit Interface Implementations

Name Description
IJsonModel<ApiError>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<ApiError>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ApiError>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ApiError>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<ApiError>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IUtf8JsonSerializable.Write(Utf8JsonWriter)

Applies to