mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-11 02:24:36 +01:00
WIP ex
This commit is contained in:
parent
350d2961c1
commit
a01bc259a8
7 changed files with 55 additions and 17 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Dalamud.Bootstrap
|
||||
{
|
||||
|
|
@ -14,8 +15,26 @@ namespace Dalamud.Bootstrap
|
|||
internal BootstrapException(string message, Exception innerException) : base(message, innerException) { }
|
||||
}
|
||||
|
||||
public class NtException : BootstrapException
|
||||
public class ProcessException : BootstrapException
|
||||
{
|
||||
public uint Pid { get; }
|
||||
|
||||
internal ProcessException() : base() { }
|
||||
|
||||
internal ProcessException(string message) : base(message) { }
|
||||
|
||||
internal ProcessException(string message, Exception innerException) : base(message, innerException) { }
|
||||
|
||||
internal ProcessException(string message, uint pid) : base(message) => Pid = pid;
|
||||
|
||||
internal ProcessException(string message, uint pid, Exception innerException) : base(message, innerException) => Pid = pid;
|
||||
|
||||
internal static ProcessException ThrowLastOsError(uint pid)
|
||||
{
|
||||
var inner = new Win32Exception();
|
||||
|
||||
const string message = "";
|
||||
throw new ProcessException(message, pid, inner);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue