ComputeBatchModelFactory.BatchError Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of BatchError.
public static Azure.Compute.Batch.BatchError BatchError (string code = default, Azure.Compute.Batch.BatchErrorMessage message = default, System.Collections.Generic.IEnumerable<Azure.Compute.Batch.BatchErrorDetail> values = default);
static member BatchError : string * Azure.Compute.Batch.BatchErrorMessage * seq<Azure.Compute.Batch.BatchErrorDetail> -> Azure.Compute.Batch.BatchError
Public Shared Function BatchError (Optional code As String = Nothing, Optional message As BatchErrorMessage = Nothing, Optional values As IEnumerable(Of BatchErrorDetail) = Nothing) As BatchError
Parameters
- code
- String
An identifier for the error. Codes are invariant and are intended to be consumed programmatically.
- message
- BatchErrorMessage
A message describing the error, intended to be suitable for display in a user interface.
- values
- IEnumerable<BatchErrorDetail>
A collection of key-value pairs containing additional details about the error.
Returns
A new BatchError instance for mocking.
Applies to
Azure SDK for .NET