using adas_core.Domain.Enums; namespace adas_core.Application.Exceptions; /// /// Represents an exception that is thrown when a requested resource or item cannot be found. /// /// public class NotFoundException : Exception { /// /// Initializes a new instance of the class. /// /// public NotFoundException() { } /// /// Initializes a new instance of the class with a specified error message. /// /// The message that describes the error. /// public NotFoundException(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 NotFoundException(string message) : base(message) { } }