using System; namespace RGB.NET.Core; /// /// /// Represents an exception thrown by a . /// public class DeviceProviderException : ApplicationException { #region Properties & Fields /// /// Gets a bool indicating if the exception is critical and shouldn't be ingored. /// public bool IsCritical { get; } #endregion #region Constructors /// /// Initializes a new instance of the class. /// /// The exception that is the casue of the current exception or null if this exception was thrown on purpose. /// A value indicating if the exception is critical and shouldn't be ignored. public DeviceProviderException(Exception? innerException, bool isCritical) : base(innerException?.Message, innerException) { this.IsCritical = isCritical; } #endregion }