Files
github-api/jacoco/org.kohsuke.github/GHIOException.java.html
2021-06-02 11:09:28 -07:00

63 lines
3.2 KiB
HTML

<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/><link rel="stylesheet" href="../jacoco-resources/report.css" type="text/css"/><link rel="shortcut icon" href="../jacoco-resources/report.gif" type="image/gif"/><title>GHIOException.java</title><link rel="stylesheet" href="../jacoco-resources/prettify.css" type="text/css"/><script type="text/javascript" src="../jacoco-resources/prettify.js"></script></head><body onload="window['PR_TAB_WIDTH']=4;prettyPrint()"><div class="breadcrumb" id="breadcrumb"><span class="info"><a href="../jacoco-sessions.html" class="el_session">Sessions</a></span><a href="../index.html" class="el_report">GitHub API for Java</a> &gt; <a href="index.source.html" class="el_package">org.kohsuke.github</a> &gt; <span class="el_source">GHIOException.java</span></div><h1>GHIOException.java</h1><pre class="source lang-java linenums">package org.kohsuke.github;
import java.io.IOException;
import java.util.List;
import java.util.Map;
import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
/**
* Request/responce contains useful metadata. Custom exception allows store info for next diagnostics.
*
* @author Kanstantsin Shautsou
*/
public class GHIOException extends IOException {
protected Map&lt;String, List&lt;String&gt;&gt; responseHeaderFields;
/**
* Instantiates a new Ghio exception.
*/
<span class="fc" id="L21"> public GHIOException() {</span>
<span class="fc" id="L22"> }</span>
/**
* Instantiates a new Ghio exception.
*
* @param message
* the message
*/
public GHIOException(String message) {
<span class="fc" id="L31"> super(message);</span>
<span class="fc" id="L32"> }</span>
/**
* Constructs a {@code GHIOException} with the specified detail message and cause.
*
* @param message
* The detail message (which is saved for later retrieval by the {@link #getMessage()} method)
*
* @param cause
* The cause (which is saved for later retrieval by the {@link #getCause()} method). (A null value is
* permitted, and indicates that the cause is nonexistent or unknown.)
*/
public GHIOException(String message, Throwable cause) {
<span class="fc" id="L45"> super(message, cause);</span>
<span class="fc" id="L46"> }</span>
/**
* Gets response header fields.
*
* @return the response header fields
*/
@CheckForNull
public Map&lt;String, List&lt;String&gt;&gt; getResponseHeaderFields() {
<span class="nc" id="L55"> return responseHeaderFields;</span>
}
GHIOException withResponseHeaderFields(@Nonnull Map&lt;String, List&lt;String&gt;&gt; headerFields) {
<span class="fc" id="L59"> this.responseHeaderFields = headerFields;</span>
<span class="fc" id="L60"> return this;</span>
}
}
</pre><div class="footer"><span class="right">Created with <a href="http://www.jacoco.org/jacoco">JaCoCo</a> 0.8.7.202105040129</span></div></body></html>