Condividi tramite


ArmDataProtectionBackupModelFactory.DataProtectionBackupUserFacingError Method

Definition

Error object used by layers that have access to localized content, and propagate that to user.

public static Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionBackupUserFacingError DataProtectionBackupUserFacingError(string code = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionBackupUserFacingError> details = default, Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionBackupInnerError innerError = default, bool? isRetryable = default, bool? isUserError = default, System.Collections.Generic.IDictionary<string,string> properties = default, string message = default, System.Collections.Generic.IEnumerable<string> recommendedAction = default, string target = default);
static member DataProtectionBackupUserFacingError : string * seq<Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionBackupUserFacingError> * Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionBackupInnerError * Nullable<bool> * Nullable<bool> * System.Collections.Generic.IDictionary<string, string> * string * seq<string> * string -> Azure.ResourceManager.DataProtectionBackup.Models.DataProtectionBackupUserFacingError
Public Shared Function DataProtectionBackupUserFacingError (Optional code As String = Nothing, Optional details As IEnumerable(Of DataProtectionBackupUserFacingError) = Nothing, Optional innerError As DataProtectionBackupInnerError = Nothing, Optional isRetryable As Nullable(Of Boolean) = Nothing, Optional isUserError As Nullable(Of Boolean) = Nothing, Optional properties As IDictionary(Of String, String) = Nothing, Optional message As String = Nothing, Optional recommendedAction As IEnumerable(Of String) = Nothing, Optional target As String = Nothing) As DataProtectionBackupUserFacingError

Parameters

code
String

Unique code for this error.

details
IEnumerable<DataProtectionBackupUserFacingError>

Additional related Errors.

innerError
DataProtectionBackupInnerError

Inner Error.

isRetryable
Nullable<Boolean>

Whether the operation will be retryable or not.

isUserError
Nullable<Boolean>

Whether the operation is due to a user error or service error.

properties
IDictionary<String,String>

Any key value pairs that can be injected inside error object.

message
String
recommendedAction
IEnumerable<String>

RecommendedAction � localized.

target
String

Target of the error.

Returns

A new DataProtectionBackupUserFacingError instance for mocking.

Applies to