diff options
| author | Ben Culkin <scorpress@gmail.com> | 2020-04-13 18:45:06 -0400 |
|---|---|---|
| committer | Ben Culkin <scorpress@gmail.com> | 2020-04-13 18:45:06 -0400 |
| commit | 7bbc3b4c159eb50f6286ccbcc8da6af9f5a8fb06 (patch) | |
| tree | 24c628a479fc5ae790b2dbd292581bed6e149ed1 /src/main/java/bjc/everge/BadReplParse.java | |
| parent | 10b6688ef898285924026e695240a1de2f332bcb (diff) | |
Cleanup pass
Pass to do some cleanup
Diffstat (limited to 'src/main/java/bjc/everge/BadReplParse.java')
| -rw-r--r-- | src/main/java/bjc/everge/BadReplParse.java | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/src/main/java/bjc/everge/BadReplParse.java b/src/main/java/bjc/everge/BadReplParse.java index e3858af..0278e76 100644 --- a/src/main/java/bjc/everge/BadReplParse.java +++ b/src/main/java/bjc/everge/BadReplParse.java @@ -2,8 +2,10 @@ package bjc.everge; import java.util.ArrayList; import java.util.List; + /** * Exception thrown when ReplPair parsing fails + * * @author bjculkin * */ @@ -19,9 +21,9 @@ public class BadReplParse extends RuntimeException { /** * Create a new exception for ReplPair parsing failing. - * - * @param msg - * The message for the exception. + * + * @param msg + * The message for the exception. */ public BadReplParse(String msg) { this(msg, new ArrayList<>()); @@ -29,11 +31,11 @@ public class BadReplParse extends RuntimeException { /** * Create a new exception for ReplPair parsing failing. - * + * * @param msg - * The message for the exception. + * The message for the exception. * @param errs - * The list of errors encountered while parsing. + * The list of errors encountered while parsing. */ public BadReplParse(String msg, List<ReplError> errs) { super(msg); @@ -44,16 +46,18 @@ public class BadReplParse extends RuntimeException { @Override public String toString() { String errString; - if (errs.size() == 0) errString = "An error"; - else errString = "Errors"; + if (errs.size() == 0) + errString = "An error"; + else + errString = "Errors"; - return String.format("%s occured parsing replacement pairs: %s\n%s", - errString, getMessage(), errs); + return String.format("%s occured parsing replacement pairs: %s\n%s", errString, + getMessage(), errs); } /** * Convert the exception to a printable format. - * + * * @return The exception as a printable format. */ public String toPrintString() { |
