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
messagestringThe 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
messageHttpEnum.ErrorMessageThe error message defined in HttpEnum.ErrorMessage that describes the reason for the exception.