mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-19 14:27:45 +01:00
WIP
This commit is contained in:
parent
f583f76537
commit
2438a89867
7 changed files with 678 additions and 170 deletions
|
|
@ -2,11 +2,21 @@ using System;
|
|||
|
||||
namespace Dalamud.Injector.Windows
|
||||
{
|
||||
internal sealed class NtStatusException : Exception
|
||||
/// <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 NtStatusException(NtStatus status)
|
||||
public NtException(NtStatus status) : base(DefaultMessage)
|
||||
{
|
||||
Status = status;
|
||||
}
|
||||
|
||||
public NtException(NtStatus status, string message) : base(message)
|
||||
{
|
||||
Status = status;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue