ArmReservationsModelFactory.OperationResultError(String, String) Method

Definition

Initializes a new instance of OperationResultError.

public static Azure.ResourceManager.Reservations.Models.OperationResultError OperationResultError (string code = default, string message = default);
static member OperationResultError : string * string -> Azure.ResourceManager.Reservations.Models.OperationResultError
Public Shared Function OperationResultError (Optional code As String = Nothing, Optional message As String = Nothing) As OperationResultError

Parameters

code
String

Required if status == failed or status == cancelled. If status == failed, provide an invariant error code used for error troubleshooting, aggregation, and analysis.

message
String

Required if status == failed. Localized. If status == failed, provide an actionable error message indicating what error occurred, and what the user can do to address the issue.

Returns

A new OperationResultError instance for mocking.

Applies to