ArmDataMigrationModelFactory.MongoDBError Method

Definition

Initializes a new instance of MongoDBError.

public static Azure.ResourceManager.DataMigration.Models.MongoDBError MongoDBError (string code = default, int? count = default, string message = default, Azure.ResourceManager.DataMigration.Models.MongoDBErrorType? errorType = default);
static member MongoDBError : string * Nullable<int> * string * Nullable<Azure.ResourceManager.DataMigration.Models.MongoDBErrorType> -> Azure.ResourceManager.DataMigration.Models.MongoDBError
Public Shared Function MongoDBError (Optional code As String = Nothing, Optional count As Nullable(Of Integer) = Nothing, Optional message As String = Nothing, Optional errorType As Nullable(Of MongoDBErrorType) = Nothing) As MongoDBError

Parameters

code
String

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

count
Nullable<Int32>

The number of times the error or warning has occurred.

message
String

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

errorType
Nullable<MongoDBErrorType>

The type of error or warning.

Returns

A new MongoDBError instance for mocking.

Applies to