mirror of
https://github.com/jkocon/g-helper.git
synced 2026-02-23 13:00:52 +01:00
Experimental GPU overclock
This commit is contained in:
27
app/NvAPIWrapper/Native/Exceptions/NVIDIAApiException.cs
Normal file
27
app/NvAPIWrapper/Native/Exceptions/NVIDIAApiException.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
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; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
|
||||
namespace NvAPIWrapper.Native.Exceptions
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents errors that raised by NvAPIWrapper
|
||||
/// </summary>
|
||||
public class NVIDIANotSupportedException : NotSupportedException
|
||||
{
|
||||
internal NVIDIANotSupportedException(string message) : base(message)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user