ResponseError 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 |
|---|---|
| ResponseError() |
Initializes a new instance of ResponseError for deserialization. |
| ResponseError(ResponseErrorCode, String) |
Initializes a new instance of ResponseError. |
| ResponseError(ResponseErrorCode, String, IDictionary<String,BinaryData>) |
Initializes a new instance of ResponseError. |
ResponseError()
- Source:
- ResponseError.cs
Initializes a new instance of ResponseError for deserialization.
public ResponseError();
Public Sub New ()
Applies to
ResponseError(ResponseErrorCode, String)
- Source:
- ResponseError.cs
Initializes a new instance of ResponseError.
public ResponseError(Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponseErrorCode code, string message);
new Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponseError : Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponseErrorCode * string -> Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponseError
Public Sub New (code As ResponseErrorCode, message As String)
Parameters
- code
- ResponseErrorCode
- message
- String
A human-readable description of the error.
Exceptions
message is null.
Applies to
ResponseError(ResponseErrorCode, String, IDictionary<String,BinaryData>)
- Source:
- ResponseError.cs
Initializes a new instance of ResponseError.
public ResponseError(Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponseErrorCode code, string message, System.Collections.Generic.IDictionary<string,BinaryData> serializedAdditionalRawData);
new Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponseError : Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponseErrorCode * string * System.Collections.Generic.IDictionary<string, BinaryData> -> Azure.AI.AgentServer.Contracts.Generated.OpenAI.ResponseError
Public Sub New (code As ResponseErrorCode, message As String, serializedAdditionalRawData As IDictionary(Of String, BinaryData))
Parameters
- code
- ResponseErrorCode
- message
- String
A human-readable description of the error.
- serializedAdditionalRawData
- IDictionary<String,BinaryData>
Keeps track of any properties unknown to the library.