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:
26
app/WindowsDisplayAPI/Exceptions/MissingModeException.cs
Normal file
26
app/WindowsDisplayAPI/Exceptions/MissingModeException.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using WindowsDisplayAPI.Native.DisplayConfig;
|
||||
|
||||
namespace WindowsDisplayAPI.Exceptions
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents errors that occurs because of missing mode information
|
||||
/// </summary>
|
||||
public class MissingModeException : Exception
|
||||
{
|
||||
/// <summary>
|
||||
/// Creates a new MissingModeException
|
||||
/// </summary>
|
||||
/// <param name="missingModeType">The missing mode type</param>
|
||||
/// <param name="message">The human readable message of the exception</param>
|
||||
public MissingModeException(string message, DisplayConfigModeInfoType missingModeType) : base(message)
|
||||
{
|
||||
MissingModeType = missingModeType;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the missing mode type
|
||||
/// </summary>
|
||||
public DisplayConfigModeInfoType MissingModeType { get; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user