Share via


MongoDBError Class

Definition

Describes an error or warning that occurred during a MongoDB migration.

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

Properties

Code

The non-localized, machine-readable code that describes the error or warning.

Count

The number of times the error or warning has occurred.

ErrorType

The type of error or warning.

Message

The localized, human-readable message that describes the error or warning.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<MongoDBError>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<MongoDBError>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<MongoDBError>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MongoDBError>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<MongoDBError>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to