using adas_core.Domain.Enums; namespace adas_core.Application.Exceptions; /// /// Represents a custom exception that is thrown when one or more arguments provided to a method are invalid. /// /// /// This exception extends the base class to provide a domain-specific error type for argument validation failures. /// public class CustomArgumentException : Exception { /// /// Initializes a new instance of the class with the specified error message. /// /// The error message from the enumeration. public CustomArgumentException(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 CustomArgumentException(string message) : base(message) { } }