using System.Net; namespace adas_core.Domain.Exceptions; /// /// Represents a business exception that is thrown when a requested user cannot be found. /// /// /// Inherits from to signal user lookup failures within the business domain. /// public class UserNotFoundException : BusinessException { public UserNotFoundException(string username) : base(HttpStatusCode.NotFound, $"USER with username {username} not found") { } public UserNotFoundException(string username, Exception exception) : base( $"USER with username {username} not found", exception) { } }