// ReSharper disable UnusedAutoPropertyAccessor.Global
// ReSharper disable MemberCanBePrivate.Global
using System;
namespace RGB.NET.Devices.Msi.Exceptions;
///
///
/// Represents an exception thrown by the MysticLight-SDK.
///
public sealed class MysticLightException : ApplicationException
{
#region Properties & Fields
///
/// Gets the raw error code provided by the SDK.
///
public int ErrorCode { get; }
///
/// Gets the text-description the resolves too.
///
public string Description { get; }
#endregion
#region Constructors
///
///
/// Initializes a new instance of the class.
///
/// The raw error code provided by the SDK.
/// The text-description of the error.
public MysticLightException(int errorCode, string description)
: base($"MSI error code {errorCode} ({description})")
{
this.ErrorCode = errorCode;
this.Description = description;
}
#endregion
}