ApiError Constructors
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.
Overloads
| Name | Description |
|---|---|
| ApiError() |
Initializes a new instance of ApiError for deserialization. |
| ApiError(String, String, IEnumerable<ApiError>) |
Initializes a new instance of ApiError. |
| ApiError(String, String, String, IReadOnlyList<ApiError>, ApiInnerError, IDictionary<String,BinaryData>) |
Initializes a new instance of ApiError. |
ApiError()
- Source:
- ApiError.cs
Initializes a new instance of ApiError for deserialization.
public ApiError();
Public Sub New ()
Applies to
ApiError(String, String, IEnumerable<ApiError>)
- Source:
- ApiError.cs
Initializes a new instance of ApiError.
public ApiError(string code, string message, System.Collections.Generic.IEnumerable<Azure.AI.AgentServer.Contracts.Generated.Common.ApiError> details);
new Azure.AI.AgentServer.Contracts.Generated.Common.ApiError : string * string * seq<Azure.AI.AgentServer.Contracts.Generated.Common.ApiError> -> Azure.AI.AgentServer.Contracts.Generated.Common.ApiError
Public Sub New (code As String, message As String, details As IEnumerable(Of ApiError))
Parameters
- code
- String
The error code.
- message
- String
A human-readable description of the error.
- details
- IEnumerable<ApiError>
Additional details about the error.
Exceptions
code, message or details is null.
Applies to
ApiError(String, String, String, IReadOnlyList<ApiError>, ApiInnerError, IDictionary<String,BinaryData>)
- Source:
- ApiError.cs
Initializes a new instance of ApiError.
public ApiError(string code, string message, string target, System.Collections.Generic.IReadOnlyList<Azure.AI.AgentServer.Contracts.Generated.Common.ApiError> details, Azure.AI.AgentServer.Contracts.Generated.Common.ApiInnerError innererror, System.Collections.Generic.IDictionary<string,BinaryData> serializedAdditionalRawData);
new Azure.AI.AgentServer.Contracts.Generated.Common.ApiError : string * string * string * System.Collections.Generic.IReadOnlyList<Azure.AI.AgentServer.Contracts.Generated.Common.ApiError> * Azure.AI.AgentServer.Contracts.Generated.Common.ApiInnerError * System.Collections.Generic.IDictionary<string, BinaryData> -> Azure.AI.AgentServer.Contracts.Generated.Common.ApiError
Public Sub New (code As String, message As String, target As String, details As IReadOnlyList(Of ApiError), innererror As ApiInnerError, serializedAdditionalRawData As IDictionary(Of String, BinaryData))
Parameters
- code
- String
The error code.
- message
- String
A human-readable description of the error.
- target
- String
The target of the error, if applicable.
- details
- IReadOnlyList<ApiError>
Additional details about the error.
- innererror
- ApiInnerError
The inner error, if any.
- serializedAdditionalRawData
- IDictionary<String,BinaryData>
Keeps track of any properties unknown to the library.