using System;
using WindowsDisplayAPI.Native.DeviceContext;
namespace WindowsDisplayAPI.Exceptions
{
///
/// Represents errors that occurs during a mode change request
///
public class ModeChangeException : Exception
{
///
/// Creates a new ModeChangeException
///
/// The device responsible for the mode change
/// The error code
/// The human readable message of the exception
public ModeChangeException(
string message,
DisplayDevice device,
ChangeDisplaySettingsExResults errorCode
) : base(message)
{
Device = device;
ErrorCode = errorCode;
}
///
/// Gets the display device responsible for the mode change
///
public DisplayDevice Device { get; }
///
/// Gets the error code
///
public ChangeDisplaySettingsExResults ErrorCode { get; }
}
}