mirror of
https://github.com/DarthAffe/RGB.NET.git
synced 2025-12-13 01:58:30 +00:00
36 lines
930 B
C#
36 lines
930 B
C#
// ReSharper disable UnusedAutoPropertyAccessor.Global
|
|
// ReSharper disable MemberCanBePrivate.Global
|
|
|
|
using System;
|
|
|
|
namespace RGB.NET.Devices.Corsair;
|
|
|
|
/// <inheritdoc />
|
|
/// <summary>
|
|
/// Represents an exception thrown by the CUE.
|
|
/// </summary>
|
|
public sealed class CUEException : ApplicationException
|
|
{
|
|
#region Properties & Fields
|
|
|
|
/// <summary>
|
|
/// Gets the <see cref="CorsairError" /> provided by CUE.
|
|
/// </summary>
|
|
public CorsairError Error { get; }
|
|
|
|
#endregion
|
|
|
|
#region Constructors
|
|
|
|
/// <inheritdoc />
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="T:RGB.NET.Devices.Corsair.CUEException" /> class.
|
|
/// </summary>
|
|
/// <param name="error">The <see cref="T:RGB.NET.Devices.Corsair.CorsairError" /> provided by CUE, which leads to this exception.</param>
|
|
public CUEException(CorsairError error)
|
|
{
|
|
this.Error = error;
|
|
}
|
|
|
|
#endregion
|
|
} |