mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Gamma Init
This commit is contained in:
32
app/WindowsDisplayAPI/Exceptions/InvalidDisplayException.cs
Normal file
32
app/WindowsDisplayAPI/Exceptions/InvalidDisplayException.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user