mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-15 01:25:25 +00:00
24 lines
482 B
C#
24 lines
482 B
C#
|
using System;
|
||
|
using System.Runtime.InteropServices;
|
||
|
|
||
|
namespace Ryujinx.Tests.Unicorn
|
||
|
{
|
||
|
public class UnicornException : Exception
|
||
|
{
|
||
|
public readonly UnicornError Error;
|
||
|
|
||
|
internal UnicornException(UnicornError error)
|
||
|
{
|
||
|
Error = error;
|
||
|
}
|
||
|
|
||
|
public override string Message
|
||
|
{
|
||
|
get
|
||
|
{
|
||
|
return Marshal.PtrToStringAnsi(Native.Interface.uc_strerror(Error));
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|