mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-09 09:24:35 +01:00
duck tape tier quality(TM)
This commit is contained in:
parent
33145ea0f2
commit
c1ed673f22
5 changed files with 44 additions and 32 deletions
27
Dalamud.Bootstrap/Windows/ProcessException.cs
Normal file
27
Dalamud.Bootstrap/Windows/ProcessException.cs
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
using System;
|
||||
|
||||
namespace Dalamud.Bootstrap.Windows
|
||||
{
|
||||
public class ProcessException : Exception
|
||||
{
|
||||
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