ResponsesModelFactory.ResponseErrorInfo(ResponseErrorCode, String) 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.
Creates a ResponseErrorInfo instance for mocking.
public static Azure.AI.AgentServer.Responses.Models.ResponseErrorInfo ResponseErrorInfo(Azure.AI.AgentServer.Responses.Models.ResponseErrorCode code = default, string message = default);
static member ResponseErrorInfo : Azure.AI.AgentServer.Responses.Models.ResponseErrorCode * string -> Azure.AI.AgentServer.Responses.Models.ResponseErrorInfo
Public Shared Function ResponseErrorInfo (Optional code As ResponseErrorCode = Nothing, Optional message As String = Nothing) As ResponseErrorInfo
Parameters
- code
- ResponseErrorCode
The error code.
- message
- String
The error message.
Returns
A new ResponseErrorInfo instance.