1
0
mirror of https://github.com/DarthAffe/RGB.NET.git synced 2025-12-12 17:48:31 +00:00

36 lines
871 B
C#

// ReSharper disable UnusedAutoPropertyAccessor.Global
// ReSharper disable MemberCanBePrivate.Global
using System;
namespace RGB.NET.Devices.Razer;
/// <inheritdoc />
/// <summary>
/// Represents an exception thrown by the Razer-SDK.
/// </summary>
public sealed class RazerException : ApplicationException
{
#region Properties & Fields
/// <summary>
/// Gets the error code provided by the SDK.
/// </summary>
public RazerError ErrorCode { get; }
#endregion
#region Constructors
/// <inheritdoc />
/// <summary>
/// Initializes a new instance of the <see cref="T:RGB.NET.Devices.Razer.RazerException" /> class.
/// </summary>
/// <param name="errorCode">The error code provided by the SDK.</param>
public RazerException(RazerError errorCode)
{
this.ErrorCode = errorCode;
}
#endregion
}