Gamma Init

This commit is contained in:
Serge
2024-02-16 15:55:37 +01:00
parent 42a598f177
commit cf84fa0616
103 changed files with 7907 additions and 41 deletions

View File

@@ -0,0 +1,32 @@
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; }
}
}