using adas_core.Domain.Enums;
namespace adas_core.Application.Exceptions;
///
/// 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 class for signaling client-side request failures.
///
///
public class BadRequestException : Exception
{
///
/// Initializes a new instance of the class with a specified error message.
///
/// The error message defined in that describes the reason for the exception.
///
public BadRequestException(HttpEnum.ErrorMessage message) : base(((int)message).ToString())
{
}
///
/// Initializes a new instance of the class with a specified error message.
///
/// The error message that describes the reason for the exception.
///
public BadRequestException(string message) : base(message)
{
}
}