using adas_core.Domain.Enums; namespace adas_core.Application.Exceptions; /// /// Exception thrown when a user lacks authorization to perform an operation. /// public class UnauthorizedException : Exception { /// /// Initializes a new instance of the class. /// /// The error message associated with the exception. public UnauthorizedException(HttpEnum.ErrorMessage message) : base(((int)message).ToString()) { } /// /// Initializes a new instance of the class. /// /// The message that describes the error. public UnauthorizedException(string message) : base(message) { } }