From 62b827f474f0aa2152dd339fcc7cf31084e16a0b Mon Sep 17 00:00:00 2001 From: emmauss Date: Tue, 20 Feb 2018 22:09:23 +0200 Subject: Split main project into core,graphics and chocolarm4 subproject (#29) --- .../OsHle/Exceptions/GuestBrokeExecutionException.cs | 11 +++++++++++ .../OsHle/Exceptions/UndefinedInstructionException.cs | 13 +++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 Ryujinx.Core/OsHle/Exceptions/GuestBrokeExecutionException.cs create mode 100644 Ryujinx.Core/OsHle/Exceptions/UndefinedInstructionException.cs (limited to 'Ryujinx.Core/OsHle/Exceptions') 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 -- cgit v1.2.3