summaryrefslogtreecommitdiff
path: root/src/main/java/bjc/rgens/parser/GrammarException.java
diff options
context:
space:
mode:
authorBenjamin J. Culkin <bjculkin@mix.wvu.edu>2020-11-11 12:29:59 -0400
committerBenjamin J. Culkin <bjculkin@mix.wvu.edu>2020-11-11 12:29:59 -0400
commit80aa147aedc91356276d4346efb1ea62ea5b06f9 (patch)
treea57c8f2ad3a7e68ba1c0a5a2bea573a8da277ab6 /src/main/java/bjc/rgens/parser/GrammarException.java
parentc88c846b75dbc806db19a2e3a907bff21fd0c273 (diff)
parente9e0ca7bfe722375e7ccb25d2bafbe395b6c6a59 (diff)
Merge branch 'master' of https://github.com/bculkin2442/rgens
Diffstat (limited to 'src/main/java/bjc/rgens/parser/GrammarException.java')
-rwxr-xr-xsrc/main/java/bjc/rgens/parser/GrammarException.java27
1 files changed, 14 insertions, 13 deletions
diff --git a/src/main/java/bjc/rgens/parser/GrammarException.java b/src/main/java/bjc/rgens/parser/GrammarException.java
index 271f717..f7aca2c 100755
--- a/src/main/java/bjc/rgens/parser/GrammarException.java
+++ b/src/main/java/bjc/rgens/parser/GrammarException.java
@@ -1,8 +1,7 @@
package bjc.rgens.parser;
/**
- * The exception thrown when something goes wrong while parsing a
- * grammar.
+ * The exception thrown when something goes wrong while parsing a grammar.
*
* @author student
*/
@@ -16,21 +15,20 @@ public class GrammarException extends RuntimeException {
* Create a new grammar exception with the specified message.
*
* @param msg
- * The message for this exception.
+ * The message for this exception.
*/
public GrammarException(String msg) {
super(msg);
}
/**
- * Create a new grammar exception with the specified message and
- * cause.
+ * Create a new grammar exception with the specified message and cause.
*
* @param msg
- * The message for this exception.
+ * The message for this exception.
*
* @param cause
- * The cause of this exception.
+ * The cause of this exception.
*/
public GrammarException(String msg, Exception cause) {
super(msg, cause);
@@ -40,7 +38,9 @@ public class GrammarException extends RuntimeException {
* Create a new grammar exception with the specified message.
*
* @param msg
- * The message for this exception.
+ * The message for this exception.
+ * @param rootMsg
+ * The root message for this exception
*/
public GrammarException(String msg, String rootMsg) {
super(msg);
@@ -49,14 +49,15 @@ public class GrammarException extends RuntimeException {
}
/**
- * Create a new grammar exception with the specified message and
- * cause.
+ * Create a new grammar exception with the specified message and cause.
*
* @param msg
- * The message for this exception.
+ * The message for this exception.
*
* @param cause
- * The cause of this exception.
+ * The cause of this exception.
+ * @param rootMsg
+ * The root message for this exception.
*/
public GrammarException(String msg, Exception cause, String rootMsg) {
super(msg, cause);
@@ -70,6 +71,6 @@ public class GrammarException extends RuntimeException {
* @return The root cause of this exception.
*/
public String getRootMessage() {
- return rootMessage == null? getMessage() : rootMessage;
+ return rootMessage == null ? getMessage() : rootMessage;
}
}