using adas_core.Domain.Enums; namespace adas_core.Application.Exceptions; /// /// Represents an exception that is thrown when an operation is forbidden or access to a resource is denied. /// /// /// This exception is intended to signal that a requested action violates access rules or restrictions, allowing callers to handle forbidden scenarios distinctly from other error conditions. /// /// public class ForbbidenException : Exception { /// /// Initializes a new instance of the class with a specified error message from the enumeration. /// /// The enumeration value whose integer representation is used as the exception message. /// public ForbbidenException(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 ForbbidenException(string message) : base(message) { } }