From: Fabian Stemmler Date: Sat, 24 Aug 2019 16:13:52 +0000 (+0200) Subject: Added MachineException and MemoryException X-Git-Url: https://mograsim.net/gitweb/?a=commitdiff_plain;h=2e8d6f555df12910fada889c87561615d99aa9b6;p=Mograsim.git Added MachineException and MemoryException --- 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); + } +}