DigitalTwinsModelFactory.ErrorInformation 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 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.