aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/Exceptions
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.HLE/Exceptions')
-rw-r--r--Ryujinx.HLE/Exceptions/GuestBrokeExecutionException.cs11
-rw-r--r--Ryujinx.HLE/Exceptions/InvalidNpdmException.cs9
-rw-r--r--Ryujinx.HLE/Exceptions/UndefinedInstructionException.cs13
3 files changed, 33 insertions, 0 deletions
diff --git a/Ryujinx.HLE/Exceptions/GuestBrokeExecutionException.cs b/Ryujinx.HLE/Exceptions/GuestBrokeExecutionException.cs
new file mode 100644
index 00000000..fe41b02a
--- /dev/null
+++ b/Ryujinx.HLE/Exceptions/GuestBrokeExecutionException.cs
@@ -0,0 +1,11 @@
+using System;
+
+namespace Ryujinx.HLE.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.HLE/Exceptions/InvalidNpdmException.cs b/Ryujinx.HLE/Exceptions/InvalidNpdmException.cs
new file mode 100644
index 00000000..58d04434
--- /dev/null
+++ b/Ryujinx.HLE/Exceptions/InvalidNpdmException.cs
@@ -0,0 +1,9 @@
+using System;
+
+namespace Ryujinx.HLE.Exceptions
+{
+ public class InvalidNpdmException : Exception
+ {
+ public InvalidNpdmException(string ExMsg) : base(ExMsg) { }
+ }
+}
diff --git a/Ryujinx.HLE/Exceptions/UndefinedInstructionException.cs b/Ryujinx.HLE/Exceptions/UndefinedInstructionException.cs
new file mode 100644
index 00000000..24bf9efd
--- /dev/null
+++ b/Ryujinx.HLE/Exceptions/UndefinedInstructionException.cs
@@ -0,0 +1,13 @@
+using System;
+
+namespace Ryujinx.HLE.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