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