summaryrefslogtreecommitdiff
path: root/dice
diff options
context:
space:
mode:
Diffstat (limited to 'dice')
-rw-r--r--dice/src/main/java/bjc/dicelang/dice/DieException.java31
-rw-r--r--dice/todos.txt3
2 files changed, 34 insertions, 0 deletions
diff --git a/dice/src/main/java/bjc/dicelang/dice/DieException.java b/dice/src/main/java/bjc/dicelang/dice/DieException.java
new file mode 100644
index 0000000..817f36c
--- /dev/null
+++ b/dice/src/main/java/bjc/dicelang/dice/DieException.java
@@ -0,0 +1,31 @@
+package bjc.dicelang.dice;
+
+/**
+ * General exception thrown when things go wrong with dice.
+ *
+ * @author Ben Culkin
+ */
+public class DieException extends RuntimeException {
+ /**
+ * Create a new die exception with a given message.
+ *
+ * @param msg
+ * The message for this exception.
+ */
+ public DieException(String msg) {
+ super(msg);
+ }
+
+ /**
+ * Create a new die exception with a given message and cause.
+ *
+ * @param msg
+ * The message for this exception.
+ *
+ * @param cause
+ * The cause for this exception.
+ */
+ public DieException(String msg, Throwable cause) {
+ super(msg, cause);
+ }
+}
diff --git a/dice/todos.txt b/dice/todos.txt
new file mode 100644
index 0000000..68f6226
--- /dev/null
+++ b/dice/todos.txt
@@ -0,0 +1,3 @@
+@TODO 12/22/17 Ben Culkin :DiceTagging
+ Add an ability to attach string tags to dice. These are mainly used for
+ stringifying dice, but may also have some other uses.