mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-15 20:37:42 +01:00
24 lines
602 B
C#
24 lines
602 B
C#
using System;
|
|
|
|
namespace Dalamud.Injector.Windows
|
|
{
|
|
/// <summary>
|
|
/// An exception that is thrown when the function call to ntdll failed.
|
|
/// </summary>
|
|
internal sealed class NtException : Exception
|
|
{
|
|
private const string DefaultMessage = "TODO: NtStatus failed message goes here";
|
|
|
|
public NtStatus Status { get; }
|
|
|
|
public NtException(NtStatus status) : base(DefaultMessage)
|
|
{
|
|
Status = status;
|
|
}
|
|
|
|
public NtException(NtStatus status, string message) : base(message)
|
|
{
|
|
Status = status;
|
|
}
|
|
}
|
|
}
|