ResponsesApiException 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 |
|---|---|
| ResponsesApiException(Error, Int32) |
Initializes a new instance of ResponsesApiException with an Error model and HTTP status code. |
| ResponsesApiException(Error, Int32, Exception) |
Initializes a new instance of ResponsesApiException with an Error model, HTTP status code, and inner exception. |
ResponsesApiException(Error, Int32)
- Source:
- ResponsesApiException.cs
Initializes a new instance of ResponsesApiException with an Error model and HTTP status code.
public ResponsesApiException(Azure.AI.AgentServer.Responses.Models.Error error, int statusCode);
new Azure.AI.AgentServer.Responses.ResponsesApiException : Azure.AI.AgentServer.Responses.Models.Error * int -> Azure.AI.AgentServer.Responses.ResponsesApiException
Public Sub New (error As Error, statusCode As Integer)
Parameters
- error
- Error
The structured error to return in the API response body.
- statusCode
- Int32
The HTTP status code to return.
Applies to
ResponsesApiException(Error, Int32, Exception)
- Source:
- ResponsesApiException.cs
Initializes a new instance of ResponsesApiException with an Error model, HTTP status code, and inner exception.
public ResponsesApiException(Azure.AI.AgentServer.Responses.Models.Error error, int statusCode, Exception innerException);
new Azure.AI.AgentServer.Responses.ResponsesApiException : Azure.AI.AgentServer.Responses.Models.Error * int * Exception -> Azure.AI.AgentServer.Responses.ResponsesApiException
Public Sub New (error As Error, statusCode As Integer, innerException As Exception)
Parameters
- error
- Error
The structured error to return in the API response body.
- statusCode
- Int32
The HTTP status code to return.
- innerException
- Exception
The exception that caused this error.