Table of Contents

Class SchemaRegistryError

Namespace
Azure.Iot.Operations.Services.SchemaRegistry.SchemaRegistry
Assembly
Azure.Iot.Operations.Services.dll

Error object for schema operations

public class SchemaRegistryError : IJsonOnDeserialized, IJsonOnSerializing
Inheritance
SchemaRegistryError
Implements
Inherited Members

Properties

Code

Error code for classification of errors (ex: '400', '404', '500', etc.).

[JsonPropertyName("code")]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
[JsonRequired]
public SchemaRegistryErrorCode Code { get; set; }

Property Value

SchemaRegistryErrorCode

Details

Additional details about the error, if available.

[JsonPropertyName("details")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public SchemaRegistryErrorDetails? Details { get; set; }

Property Value

SchemaRegistryErrorDetails

InnerError

Inner error object for nested errors, if applicable.

[JsonPropertyName("innerError")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public SchemaRegistryErrorDetails? InnerError { get; set; }

Property Value

SchemaRegistryErrorDetails

Message

Human-readable error message.

[JsonPropertyName("message")]
[JsonIgnore(Condition = JsonIgnoreCondition.Never)]
[JsonRequired]
public string Message { get; set; }

Property Value

string

Target

Target of the error, if applicable (e.g., 'schemaType').

[JsonPropertyName("target")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public SchemaRegistryErrorTarget? Target { get; set; }

Property Value

SchemaRegistryErrorTarget?