From baacb867ef6cff87e45d964a9a622001c38e26ec Mon Sep 17 00:00:00 2001 From: "Benjamin J. Culkin" Date: Wed, 30 May 2018 11:52:50 -0300 Subject: Update --- .../main/java/bjc/dicelang/dice/DieException.java | 31 ++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 dice/src/main/java/bjc/dicelang/dice/DieException.java (limited to 'dice/src/main/java/bjc') 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); + } +} -- cgit v1.2.3