mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
27 lines
651 B
C#
27 lines
651 B
C#
using System;
|
|
using NvAPIWrapper.Native.General;
|
|
|
|
namespace NvAPIWrapper.Native.Exceptions
|
|
{
|
|
/// <summary>
|
|
/// Represents errors that raised by NVIDIA Api
|
|
/// </summary>
|
|
public class NVIDIAApiException : Exception
|
|
{
|
|
internal NVIDIAApiException(Status status)
|
|
{
|
|
Status = status;
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
public override string Message
|
|
{
|
|
get => GeneralApi.GetErrorMessage(Status) ?? Status.ToString();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets NVIDIA Api exception status code
|
|
/// </summary>
|
|
public Status Status { get; }
|
|
}
|
|
} |