From 08bf9a8d3c15a622105d63bc0d9d0f59c0fae6fd Mon Sep 17 00:00:00 2001 From: Fabian Stemmler Date: Sat, 24 Aug 2019 18:13:52 +0200 Subject: [PATCH] Added MachineException and MemoryException --- .../mograsim/machine/MachineException.java | 25 +++++++++++++++++ .../standard/memory/MemoryException.java | 27 +++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 net.mograsim.machine/src/net/mograsim/machine/MachineException.java create mode 100644 net.mograsim.machine/src/net/mograsim/machine/standard/memory/MemoryException.java 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 index 00000000..e41fca74 --- /dev/null +++ b/net.mograsim.machine/src/net/mograsim/machine/MachineException.java @@ -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 index 00000000..c0a78896 --- /dev/null +++ b/net.mograsim.machine/src/net/mograsim/machine/standard/memory/MemoryException.java @@ -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); + } +} -- 2.17.1