BadRequestException 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 |
|---|---|
| BadRequestException(String) |
Initializes a new instance of BadRequestException with a message. |
| BadRequestException(String, Exception) |
Initializes a new instance of BadRequestException with a message and an inner exception. |
| BadRequestException(String, String) |
Initializes a new instance of BadRequestException with a message and the name of the invalid parameter. |
| BadRequestException(String, String, String) |
Initializes a new instance of BadRequestException with a message, an error code, and the name of the invalid parameter. |
BadRequestException(String)
- Source:
- BadRequestException.cs
Initializes a new instance of BadRequestException with a message.
public BadRequestException(string message);
new Azure.AI.AgentServer.Responses.BadRequestException : string -> Azure.AI.AgentServer.Responses.BadRequestException
Public Sub New (message As String)
Parameters
- message
- String
A description of the validation error.
Applies to
BadRequestException(String, Exception)
- Source:
- BadRequestException.cs
Initializes a new instance of BadRequestException with a message and an inner exception.
public BadRequestException(string message, Exception innerException);
new Azure.AI.AgentServer.Responses.BadRequestException : string * Exception -> Azure.AI.AgentServer.Responses.BadRequestException
Public Sub New (message As String, innerException As Exception)
Parameters
- message
- String
A description of the validation error.
- innerException
- Exception
The exception that caused this error.
Applies to
BadRequestException(String, String)
- Source:
- BadRequestException.cs
Initializes a new instance of BadRequestException with a message and the name of the invalid parameter.
public BadRequestException(string message, string? paramName);
new Azure.AI.AgentServer.Responses.BadRequestException : string * string -> Azure.AI.AgentServer.Responses.BadRequestException
Public Sub New (message As String, paramName As String)
Parameters
- message
- String
A description of the validation error.
- paramName
- String
The name of the invalid parameter, or null.
Applies to
BadRequestException(String, String, String)
- Source:
- BadRequestException.cs
Initializes a new instance of BadRequestException with a message, an error code, and the name of the invalid parameter.
public BadRequestException(string message, string? code, string? paramName);
new Azure.AI.AgentServer.Responses.BadRequestException : string * string * string -> Azure.AI.AgentServer.Responses.BadRequestException
Public Sub New (message As String, code As String, paramName As String)
Parameters
- message
- String
A description of the validation error.
- code
- String
An error code identifying the kind of validation failure, or null.
- paramName
- String
The name of the invalid parameter, or null.