diff options
| author | Ben Culkin <scorpress@gmail.com> | 2020-10-06 19:16:26 -0400 |
|---|---|---|
| committer | Ben Culkin <scorpress@gmail.com> | 2020-10-06 19:16:26 -0400 |
| commit | e9e0ca7bfe722375e7ccb25d2bafbe395b6c6a59 (patch) | |
| tree | 8e8e556724683d4d10d7da1f3e85705a50ae33c6 /src/main/java/bjc/rgens/parser/GrammarException.java | |
| parent | a3ea557c0b7204f56b1499687cc7f82c5b1677a5 (diff) | |
Info cleanup
Diffstat (limited to 'src/main/java/bjc/rgens/parser/GrammarException.java')
| -rwxr-xr-x | src/main/java/bjc/rgens/parser/GrammarException.java | 27 |
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; } } |
