Table of Contents

Class BadRequestException

Namespace
adas_core.Application.Exceptions
Assembly
adas-core.Application.dll

Represents an exception that is thrown when a bad or invalid request is received. It serves as a specialized error type derived from the base Exception class for signaling client-side request failures.

public class BadRequestException : Exception, ISerializable
Inheritance
BadRequestException
Implements
Inherited Members
Extension Methods

Constructors

BadRequestException(string)

Initializes a new instance of the BadRequestException class with a specified error message.

public BadRequestException(string message)

Parameters

message string

The error message that describes the reason for the exception.

BadRequestException(ErrorMessage)

Initializes a new instance of the BadRequestException class with a specified error message.

public BadRequestException(HttpEnum.ErrorMessage message)

Parameters

message HttpEnum.ErrorMessage

The error message defined in HttpEnum.ErrorMessage that describes the reason for the exception.