DigitalTwinsModelFactory.ErrorInformation Method

Definition

Initializes a new instance of ErrorInformation.

public static Azure.DigitalTwins.Core.ErrorInformation ErrorInformation(string code = default, string message = default, System.Collections.Generic.IEnumerable<Azure.DigitalTwins.Core.ErrorInformation> details = default, Azure.DigitalTwins.Core.InnerError innererror = default);
static member ErrorInformation : string * string * seq<Azure.DigitalTwins.Core.ErrorInformation> * Azure.DigitalTwins.Core.InnerError -> Azure.DigitalTwins.Core.ErrorInformation
Public Shared Function ErrorInformation (Optional code As String = Nothing, Optional message As String = Nothing, Optional details As IEnumerable(Of ErrorInformation) = Nothing, Optional innererror As InnerError = Nothing) As ErrorInformation

Parameters

code
String

Service specific error code which serves as the substatus for the HTTP error code.

message
String

A human-readable representation of the error.

details
IEnumerable<ErrorInformation>

Internal error details.

innererror
InnerError

An object containing more specific information than the current object about the error.

Returns

A new ErrorInformation instance for mocking.

Applies to