ErrorResponse Class

Definition

Error Response.

public class ErrorResponse : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.CosmosDB.Models.ErrorResponse>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.CosmosDB.Models.ErrorResponse>
type ErrorResponse = class
    interface IJsonModel<ErrorResponse>
    interface IPersistableModel<ErrorResponse>
Public Class ErrorResponse
Implements IJsonModel(Of ErrorResponse), IPersistableModel(Of ErrorResponse)
Inheritance
ErrorResponse
Implements

Properties

Code

Error code.

Message

Error message indicating why the operation failed.

Explicit Interface Implementations

IJsonModel<ErrorResponse>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<ErrorResponse>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ErrorResponse>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ErrorResponse>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<ErrorResponse>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to