Share via


ResponseError Class

Definition

Represents an error returned by an Azure Service.

[System.Text.Json.Serialization.JsonConverter(typeof(Azure.ResponseError+Converter))]
public sealed class ResponseError : System.ClientModel.Primitives.IJsonModel<Azure.ResponseError>, System.ClientModel.Primitives.IPersistableModel<Azure.ResponseError>
[<System.Text.Json.Serialization.JsonConverter(typeof(Azure.ResponseError+Converter))>]
type ResponseError = class
    interface IJsonModel<ResponseError>
    interface IPersistableModel<ResponseError>
Public NotInheritable Class ResponseError
Implements IJsonModel(Of ResponseError), IPersistableModel(Of ResponseError)
Inheritance
ResponseError
Attributes
Implements

Constructors

ResponseError()

Initializes a new instance of ResponseError.

ResponseError(String, String)

Initializes a new instance of ResponseError.

Properties

Code

Gets the error code.

Message

Gets the error message.

Methods

ToString()

Returns a string that represents the current object.

Explicit Interface Implementations

IJsonModel<ResponseError>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<ResponseError>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ResponseError>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ResponseError>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<ResponseError>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to