aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Core/OsHle/Exceptions
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Core/OsHle/Exceptions')
-rw-r--r--Ryujinx.Core/OsHle/Exceptions/GuestBrokeExecutionException.cs11
-rw-r--r--Ryujinx.Core/OsHle/Exceptions/UndefinedInstructionException.cs13
2 files changed, 24 insertions, 0 deletions
diff --git a/Ryujinx.Core/OsHle/Exceptions/GuestBrokeExecutionException.cs b/Ryujinx.Core/OsHle/Exceptions/GuestBrokeExecutionException.cs
new file mode 100644
index 00000000..db4929c5
--- /dev/null
+++ b/Ryujinx.Core/OsHle/Exceptions/GuestBrokeExecutionException.cs
@@ -0,0 +1,11 @@
+using System;
+
+namespace Ryujinx.Core.OsHle.Exceptions
+{
+ public class GuestBrokeExecutionException : Exception
+ {
+ private const string ExMsg = "The guest program broke execution!";
+
+ public GuestBrokeExecutionException() : base(ExMsg) { }
+ }
+} \ No newline at end of file
diff --git a/Ryujinx.Core/OsHle/Exceptions/UndefinedInstructionException.cs b/Ryujinx.Core/OsHle/Exceptions/UndefinedInstructionException.cs
new file mode 100644
index 00000000..20cf8386
--- /dev/null
+++ b/Ryujinx.Core/OsHle/Exceptions/UndefinedInstructionException.cs
@@ -0,0 +1,13 @@
+using System;
+
+namespace Ryujinx.Core.OsHle.Exceptions
+{
+ public class UndefinedInstructionException : Exception
+ {
+ private const string ExMsg = "The instruction at 0x{0:x16} (opcode 0x{1:x8}) is undefined!";
+
+ public UndefinedInstructionException() : base() { }
+
+ public UndefinedInstructionException(long Position, int OpCode) : base(string.Format(ExMsg, Position, OpCode)) { }
+ }
+} \ No newline at end of file