using System; using WindowsDisplayAPI.Native.Structures; namespace WindowsDisplayAPI.Exceptions { /// /// Represents errors that occurs because of path target being inavailable /// public class TargetNotAvailableException : Exception { /// /// Creates a new TargetNotAvailableException /// /// The human readable message of the exception /// The driving adapter's identification /// The target identification number public TargetNotAvailableException(string message, LUID adapterId, uint targetId) : base(message) { AdapterId = adapterId; TargetId = targetId; } /// /// Gets the driving adapter's identification /// public LUID AdapterId { get; } /// /// Gets the target's identification number /// public uint TargetId { get; } } }