summaryrefslogtreecommitdiff
path: root/src/main/java/exceptions/VSSimulatorException.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/exceptions/VSSimulatorException.java')
-rw-r--r--src/main/java/exceptions/VSSimulatorException.java47
1 files changed, 47 insertions, 0 deletions
diff --git a/src/main/java/exceptions/VSSimulatorException.java b/src/main/java/exceptions/VSSimulatorException.java
new file mode 100644
index 0000000..2ce8b3a
--- /dev/null
+++ b/src/main/java/exceptions/VSSimulatorException.java
@@ -0,0 +1,47 @@
+package exceptions;
+
+/**
+ * Base exception class for all DS-Sim simulator exceptions.
+ * This provides a common base for all custom exceptions in the application.
+ *
+ * @author Paul C. Buetow
+ */
+public class VSSimulatorException extends Exception {
+ /** The serial version uid */
+ private static final long serialVersionUID = 1L;
+
+ /**
+ * Constructs a new simulator exception with null as its detail message.
+ */
+ public VSSimulatorException() {
+ super();
+ }
+
+ /**
+ * Constructs a new simulator exception with the specified detail message.
+ *
+ * @param message the detail message
+ */
+ public VSSimulatorException(String message) {
+ super(message);
+ }
+
+ /**
+ * Constructs a new simulator exception with the specified detail message and cause.
+ *
+ * @param message the detail message
+ * @param cause the cause
+ */
+ public VSSimulatorException(String message, Throwable cause) {
+ super(message, cause);
+ }
+
+ /**
+ * Constructs a new simulator exception with the specified cause.
+ *
+ * @param cause the cause
+ */
+ public VSSimulatorException(Throwable cause) {
+ super(cause);
+ }
+} \ No newline at end of file