using adas_core.Domain.Enums;
namespace adas_core.Application.Exceptions;
///
/// Represents an exception that is thrown when a conflict is encountered, such as a resource state mismatch or a duplicate entry.
///
public class ConflictException : Exception
{
///
/// Initializes a new instance of the class with a specified error message.
///
/// The error message that describes the conflict.
public ConflictException(HttpEnum.ErrorMessage message) : base(((int)message).ToString())
{
}
///
/// Initializes a new instance of the class with a specified error message.
///
/// The message that describes the error.
public ConflictException(string message) : base(message)
{
}
}