BadRequestException Class

Definition

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.

Applies to