using System;
using NvAPIWrapper.Native.General;
namespace NvAPIWrapper.Native.Exceptions
{
///
/// Represents errors that raised by NVIDIA Api
///
public class NVIDIAApiException : Exception
{
internal NVIDIAApiException(Status status)
{
Status = status;
}
///
public override string Message
{
get => GeneralApi.GetErrorMessage(Status) ?? Status.ToString();
}
///
/// Gets NVIDIA Api exception status code
///
public Status Status { get; }
}
}