BadRequestException Class
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.
Exception thrown when a request is invalid — malformed JSON, missing required fields, or invalid parameter values. Maps to HTTP 400 Bad Request.
public class BadRequestException : Exception
type BadRequestException = class
inherit Exception
Public Class BadRequestException
Inherits Exception
- Inheritance
-
BadRequestException
- Derived
Constructors
| Name | Description |
|---|---|
| BadRequestException(String, Exception) |
Initializes a new instance of BadRequestException with a message and an inner exception. |
| 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, String) |
Initializes a new instance of BadRequestException with a message and the name of the invalid parameter. |
| BadRequestException(String) |
Initializes a new instance of BadRequestException with a message. |
Properties
| Name | Description |
|---|---|
| Code |
Gets the error code identifying the kind of validation failure, if applicable. |
| ParamName |
Gets the name of the invalid parameter, if applicable. |