mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
32 lines
861 B
C#
32 lines
861 B
C#
using System;
|
|
|
|
namespace WindowsDisplayAPI.Exceptions
|
|
{
|
|
/// <summary>
|
|
/// Represents errors that occurs because of an invalid display instance
|
|
/// </summary>
|
|
public class InvalidDisplayException : Exception
|
|
{
|
|
/// <summary>
|
|
/// Creates a new InvalidDisplayException
|
|
/// </summary>
|
|
/// <param name="displayPath">The path of invalidated display device</param>
|
|
public InvalidDisplayException(string displayPath)
|
|
{
|
|
DisplayPath = displayPath;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Creates a new InvalidDisplayException
|
|
/// </summary>
|
|
public InvalidDisplayException() : this(null)
|
|
{
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the path of the display device
|
|
/// </summary>
|
|
public string DisplayPath { get; }
|
|
}
|
|
} |