Added MachineException and MemoryException
authorFabian Stemmler <stemmler@in.tum.de>
Sat, 24 Aug 2019 16:13:52 +0000 (18:13 +0200)
committerFabian Stemmler <stemmler@in.tum.de>
Sat, 24 Aug 2019 16:13:52 +0000 (18:13 +0200)
net.mograsim.machine/src/net/mograsim/machine/MachineException.java [new file with mode: 0644]
net.mograsim.machine/src/net/mograsim/machine/standard/memory/MemoryException.java [new file with mode: 0644]

diff --git a/net.mograsim.machine/src/net/mograsim/machine/MachineException.java b/net.mograsim.machine/src/net/mograsim/machine/MachineException.java
new file mode 100644 (file)
index 0000000..e41fca7
--- /dev/null
@@ -0,0 +1,25 @@
+package net.mograsim.machine;
+
+public class MachineException extends RuntimeException
+{
+
+       /**
+        * 
+        */
+       private static final long serialVersionUID = 6224307211078376836L;
+
+       public MachineException()
+       {
+               super();
+       }
+       
+       public MachineException(String message)
+       {
+               super(message);
+       }
+       
+       public MachineException(Throwable cause)
+       {
+               super(cause);
+       }
+}
diff --git a/net.mograsim.machine/src/net/mograsim/machine/standard/memory/MemoryException.java b/net.mograsim.machine/src/net/mograsim/machine/standard/memory/MemoryException.java
new file mode 100644 (file)
index 0000000..c0a7889
--- /dev/null
@@ -0,0 +1,27 @@
+package net.mograsim.machine.standard.memory;
+
+import net.mograsim.machine.MachineException;
+
+public class MemoryException extends MachineException
+{
+
+       /**
+        * 
+        */
+       private static final long serialVersionUID = 6416796315595721079L;
+
+       public MemoryException()
+       {
+               super();
+       }
+       
+       public MemoryException(String message)
+       {
+               super(message);
+       }
+       
+       public MemoryException(Throwable cause)
+       {
+               super(cause);
+       }
+}