diff options
| author | Benjamin J. Culkin <bjculkin@mix.wvu.edu> | 2018-05-30 11:52:50 -0300 |
|---|---|---|
| committer | Benjamin J. Culkin <bjculkin@mix.wvu.edu> | 2018-05-30 11:52:50 -0300 |
| commit | baacb867ef6cff87e45d964a9a622001c38e26ec (patch) | |
| tree | defded5ddf9c688dca929c772a979da92cf4d28c | |
| parent | 1267c3caa399a9624ffd216e349c089c5bb8f2f3 (diff) | |
Update
| -rw-r--r-- | base/src/bjc/dicelang/Errors.java | 11 | ||||
| -rw-r--r-- | dice/src/main/java/bjc/dicelang/dice/DieException.java | 31 | ||||
| -rw-r--r-- | dice/todos.txt | 3 |
3 files changed, 42 insertions, 3 deletions
diff --git a/base/src/bjc/dicelang/Errors.java b/base/src/bjc/dicelang/Errors.java index fe9df2a..10e737f 100644 --- a/base/src/bjc/dicelang/Errors.java +++ b/base/src/bjc/dicelang/Errors.java @@ -1,13 +1,18 @@ package bjc.dicelang; -/** - * Repository for error messages. - * +/* * @TODO 10/08/17 Ben Culkin :ErrorRefactor * * This way of handling error messages is not easy to deal with. Something * else needs to be done, but I'm not sure what at the moment. * + * NOTE: This needs to have the same thing that happened to SCL happen to + * it, but that can happen later + */ + +/** + * Repository for error messages. + * * @author EVE * */ 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. |
