Freigeben über


Error Class

Definition

The Error.

public class Error : System.ClientModel.Primitives.IJsonModel<Azure.AI.AgentServer.Responses.Models.Error>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.AgentServer.Responses.Models.Error>
type Error = class
    interface IJsonModel<Error>
    interface IPersistableModel<Error>
Public Class Error
Implements IJsonModel(Of Error), IPersistableModel(Of Error)
Inheritance
Error
Implements

Constructors

Name Description
Error(String, String)

Initializes a new instance of Error.

Properties

Name Description
AdditionalInfo

Gets the AdditionalInfo.

To assign an object to the value of this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

Examples:

  • BinaryData.FromObjectAsJson("foo"). : Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""). : Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }). : Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"). : Creates a payload of { "key": "value" }.

Code

Gets or sets the Code.

DebugInfo

Gets the DebugInfo.

To assign an object to the value of this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

Examples:

  • BinaryData.FromObjectAsJson("foo"). : Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""). : Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }). : Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"). : Creates a payload of { "key": "value" }.

Details

Gets the Details.

Message

Gets or sets the Message.

Param

Gets or sets the Param.

Type

Gets or sets the Type.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<Error>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<Error>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<Error>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<Error>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<Error>.Write(ModelReaderWriterOptions)

Applies to