Show / Hide Table of Contents

Class ResponseError

Represents an error returned by an Azure Service.

Inheritance
System.Object
ResponseError
Namespace: System.Dynamic.ExpandoObject
Assembly: Azure.Core.dll
Syntax
[System.Text.Json.Serialization.JsonConverter(typeof(Azure.ResponseError/Converter))]
public sealed class ResponseError

Constructors

ResponseError(String, String)

Initializes a new instance of ResponseError.

Declaration
public ResponseError (string code, string message);
Parameters
System.String code

The error code.

System.String message

The error message.

Properties

Code

Gets the error code.

Declaration
public string Code { get; }
Property Value
System.String

Message

Gets the error message.

Declaration
public string Message { get; }
Property Value
System.String

Methods

ToString()

Returns a string that represents the current object.

Declaration
public override string ToString ();
Returns
System.String

A string that represents the current object.

Back to top Azure SDK for .NET