diff options
Diffstat (limited to 'base/src/main/java/bjc/utils/exceptions/OperandsRemaining.java')
| -rw-r--r-- | base/src/main/java/bjc/utils/exceptions/OperandsRemaining.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/base/src/main/java/bjc/utils/exceptions/OperandsRemaining.java b/base/src/main/java/bjc/utils/exceptions/OperandsRemaining.java new file mode 100644 index 0000000..ca83b30 --- /dev/null +++ b/base/src/main/java/bjc/utils/exceptions/OperandsRemaining.java @@ -0,0 +1,28 @@ +package bjc.utils.exceptions; + +/** + * Exception thrown when an operation has finished, but still has more input + * that has not been processed. + * + * @author Ben Culkin + * + */ +public class OperandsRemaining extends RuntimeException { + private static final long serialVersionUID = 4848222659854671315L; + + /** + * Create a new OperandsRemaining exception with a default message. + */ + public OperandsRemaining() { + super("Operation had input left-over"); + } + + /** + * Create a new OperandsRemaining exception with a specific message. + * + * @param msg The message of the exception. + */ + public OperandsRemaining(String msg) { + super(msg); + } +} |
