summaryrefslogtreecommitdiff
path: root/docs/jacoco-ut/bjc.everge/BadReplParse.java.html
diff options
context:
space:
mode:
authorbculkin2442 <bjculkin@mix.wvu.edu>2020-05-20 19:40:06 -0400
committerbculkin2442 <bjculkin@mix.wvu.edu>2020-05-20 19:40:06 -0400
commit4d449a9b96570e8c655fc303ca0ca81dab394e3d (patch)
tree5a23a776cb7e63cde971dafee02379efdaa04ba3 /docs/jacoco-ut/bjc.everge/BadReplParse.java.html
parent63524d0fe212609cc4af93807753a47eae09979b (diff)
Update docs
Diffstat (limited to 'docs/jacoco-ut/bjc.everge/BadReplParse.java.html')
-rw-r--r--docs/jacoco-ut/bjc.everge/BadReplParse.java.html72
1 files changed, 38 insertions, 34 deletions
diff --git a/docs/jacoco-ut/bjc.everge/BadReplParse.java.html b/docs/jacoco-ut/bjc.everge/BadReplParse.java.html
index 4859e42..f8754f7 100644
--- a/docs/jacoco-ut/bjc.everge/BadReplParse.java.html
+++ b/docs/jacoco-ut/bjc.everge/BadReplParse.java.html
@@ -2,8 +2,10 @@
import java.util.ArrayList;
import java.util.List;
+
/**
* Exception thrown when ReplPair parsing fails
+ *
* @author bjculkin
*
*/
@@ -19,71 +21,73 @@ 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) {
-<span class="nc" id="L27"> this(msg, new ArrayList&lt;&gt;());</span>
-<span class="nc" id="L28"> }</span>
+<span class="nc" id="L29"> this(msg, new ArrayList&lt;&gt;());</span>
+<span class="nc" id="L30"> }</span>
/**
* 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&lt;ReplError&gt; errs) {
-<span class="fc" id="L39"> super(msg);</span>
+<span class="fc" id="L41"> super(msg);</span>
-<span class="fc" id="L41"> this.errs = errs;</span>
-<span class="fc" id="L42"> }</span>
+<span class="fc" id="L43"> this.errs = errs;</span>
+<span class="fc" id="L44"> }</span>
@Override
public String toString() {
String errString;
-<span class="nc bnc" id="L47" title="All 2 branches missed."> if (errs.size() == 0) errString = &quot;An error&quot;;</span>
-<span class="nc" id="L48"> else errString = &quot;Errors&quot;;</span>
+<span class="nc bnc" id="L49" title="All 2 branches missed."> if (errs.size() == 0)</span>
+<span class="nc" id="L50"> errString = &quot;An error&quot;;</span>
+ else
+<span class="nc" id="L52"> errString = &quot;Errors&quot;;</span>
-<span class="nc" id="L50"> return String.format(&quot;%s occured parsing replacement pairs: %s\n%s&quot;,</span>
-<span class="nc" id="L51"> errString, getMessage(), errs);</span>
+<span class="nc" id="L54"> return String.format(&quot;%s occured parsing replacement pairs: %s\n%s&quot;, errString,</span>
+<span class="nc" id="L55"> getMessage(), errs);</span>
}
/**
* Convert the exception to a printable format.
- *
+ *
* @return The exception as a printable format.
*/
public String toPrintString() {
-<span class="fc" id="L60"> StringBuilder errString = new StringBuilder(&quot;[ERROR] &quot;);</span>
+<span class="fc" id="L64"> StringBuilder errString = new StringBuilder(&quot;[ERROR] &quot;);</span>
-<span class="pc bpc" id="L62" title="1 of 2 branches missed."> if (errs.size() == 0) {</span>
-<span class="nc" id="L63"> errString.append(&quot;No specific errors&quot;);</span>
-<span class="pc bpc" id="L64" title="1 of 2 branches missed."> } else if (errs.size() == 1) {</span>
-<span class="fc" id="L65"> errString.append(&quot;An error&quot;);</span>
+<span class="pc bpc" id="L66" title="1 of 2 branches missed."> if (errs.size() == 0) {</span>
+<span class="nc" id="L67"> errString.append(&quot;No specific errors&quot;);</span>
+<span class="pc bpc" id="L68" title="1 of 2 branches missed."> } else if (errs.size() == 1) {</span>
+<span class="fc" id="L69"> errString.append(&quot;An error&quot;);</span>
} else {
-<span class="nc" id="L67"> errString.append(errs.size());</span>
-<span class="nc" id="L68"> errString.append(&quot; errors&quot;);</span>
+<span class="nc" id="L71"> errString.append(errs.size());</span>
+<span class="nc" id="L72"> errString.append(&quot; errors&quot;);</span>
}
-<span class="fc" id="L71"> errString.append(&quot; occured parsing replacement pairs:&quot;);</span>
-<span class="pc bpc" id="L72" title="1 of 2 branches missed."> if (!getMessage().equals(&quot;&quot;)) {</span>
-<span class="nc" id="L73"> errString.append(&quot; &quot;);</span>
-<span class="nc" id="L74"> errString.append(getMessage());</span>
+<span class="fc" id="L75"> errString.append(&quot; occured parsing replacement pairs:&quot;);</span>
+<span class="pc bpc" id="L76" title="1 of 2 branches missed."> if (!getMessage().equals(&quot;&quot;)) {</span>
+<span class="nc" id="L77"> errString.append(&quot; &quot;);</span>
+<span class="nc" id="L78"> errString.append(getMessage());</span>
}
-<span class="pc bpc" id="L77" title="1 of 2 branches missed."> if (errs.size() &gt; 0) {</span>
-<span class="fc" id="L78"> errString.append(&quot;\n\t&quot;);</span>
+<span class="pc bpc" id="L81" title="1 of 2 branches missed."> if (errs.size() &gt; 0) {</span>
+<span class="fc" id="L82"> errString.append(&quot;\n\t&quot;);</span>
-<span class="fc bfc" id="L80" title="All 2 branches covered."> for (ReplError err : errs) {</span>
-<span class="fc" id="L81"> errString.append(err.toPrintString(&quot;\t&quot;));</span>
-<span class="fc" id="L82"> errString.append(&quot;\n\t&quot;);</span>
-<span class="fc" id="L83"> }</span>
+<span class="fc bfc" id="L84" title="All 2 branches covered."> for (ReplError err : errs) {</span>
+<span class="fc" id="L85"> errString.append(err.toPrintString(&quot;\t&quot;));</span>
+<span class="fc" id="L86"> errString.append(&quot;\n\t&quot;);</span>
+<span class="fc" id="L87"> }</span>
}
-<span class="fc" id="L86"> return errString.toString().trim();</span>
+<span class="fc" id="L90"> return errString.toString().trim();</span>
}
}
</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.2.201808211720</span></div></body></html> \ No newline at end of file