summaryrefslogtreecommitdiff
path: root/base/src/main/java/bjc/utils/exceptions/PragmaFormatException.java
diff options
context:
space:
mode:
authorBen Culkin <scorpress@gmail.com>2020-10-06 19:26:52 -0400
committerBen Culkin <scorpress@gmail.com>2020-10-06 19:26:52 -0400
commita7a87f682a039d4761112f1dedb9351f3d7a2bbf (patch)
tree14688fcc9f8f0d8dee718e213ba5725a7ddc2db1 /base/src/main/java/bjc/utils/exceptions/PragmaFormatException.java
parent9dd6cd76e45335f5d303456a648c3eca9c5bf930 (diff)
Rename exceptions to not use Exception
This renames several of the stock exceptions to remove 'Exception' from their name. This is something that I don't recall where I picked it up from, but the idea is that the fact that it is an exception is generally syntactically obvious. Therefore, you can instead give your exceptions names which directly state what it wrong, as well as strongly implying what you can do to fix it. For instance, if you get a DirectionInvalid, it is apparent what the issue is (it is less apparent why it is invalid, but that is another issue, and a discussion for another time)
Diffstat (limited to 'base/src/main/java/bjc/utils/exceptions/PragmaFormatException.java')
-rw-r--r--base/src/main/java/bjc/utils/exceptions/PragmaFormatException.java28
1 files changed, 0 insertions, 28 deletions
diff --git a/base/src/main/java/bjc/utils/exceptions/PragmaFormatException.java b/base/src/main/java/bjc/utils/exceptions/PragmaFormatException.java
deleted file mode 100644
index 684c63d..0000000
--- a/base/src/main/java/bjc/utils/exceptions/PragmaFormatException.java
+++ /dev/null
@@ -1,28 +0,0 @@
-package bjc.utils.exceptions;
-
-import java.util.InputMismatchException;
-
-/**
- * The exception to throw whenever a pragma is used with invalid syntax.
- *
- * @author ben
- */
-public class PragmaFormatException extends InputMismatchException {
- /* Version ID for serialization. */
- private static final long serialVersionUID = 1288536477368021069L;
-
- /** Create a new exception */
- public PragmaFormatException() {
- super();
- }
-
- /**
- * Create a new exception with the given message.
- *
- * @param message
- * The message to explain why the exception was thrown.
- */
- public PragmaFormatException(final String message) {
- super(message);
- }
-}