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

62 lines
3.1 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>GHFileNotFoundException.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">GHFileNotFoundException.java</span></div><h1>GHFileNotFoundException.java</h1><pre class="source lang-java linenums">package org.kohsuke.github;
import java.io.FileNotFoundException;
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 GHFileNotFoundException extends FileNotFoundException {
protected Map&lt;String, List&lt;String&gt;&gt; responseHeaderFields;
/**
* Instantiates a new Gh file not found exception.
*/
<span class="nc" id="L21"> public GHFileNotFoundException() {</span>
<span class="nc" id="L22"> }</span>
/**
* Instantiates a new Gh file not found exception.
*
* @param message
* the message
*/
public GHFileNotFoundException(String message) {
<span class="fc" id="L31"> super(message);</span>
<span class="fc" id="L32"> }</span>
/**
* Instantiates a new Gh file not found exception.
*
* @param message
* the message
* @param cause
* the cause
*/
public GHFileNotFoundException(String message, Throwable cause) {
<span class="fc" id="L43"> super(message);</span>
<span class="fc" id="L44"> this.initCause(cause);</span>
<span class="fc" id="L45"> }</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="L54"> return responseHeaderFields;</span>
}
GHFileNotFoundException withResponseHeaderFields(@Nonnull Map&lt;String, List&lt;String&gt;&gt; headerFields) {
<span class="fc" id="L58"> this.responseHeaderFields = headerFields;</span>
<span class="fc" id="L59"> 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>