Top Fields Constructors Methods
org.jabref.logic.importer

public Class FetcherException

extends JabRefException
Class Inheritance
Known Direct Subclasses
org.jabref.logic.importer.FetcherServerException, org.jabref.logic.importer.FetcherClientException
Imports
java.io.IOException, java.net.URL, java.util.Optional, java.util.regex.Pattern, org.jabref.http.dto.SimpleHttpResponse, org.jabref.logic.JabRefException, org.jabref.model.strings.StringUtil, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private static final Pattern
private final SimpleHttpResponse
private static final Logger
private static String
private final String

Constructor Summary

AccessConstructor and Description
public
protected
public
public
FetcherException(URL url, String errorMessage, Throwable cause)

public
FetcherException(String errorMessage, Throwable cause)

public
FetcherException(String errorMessage)

public
FetcherException(String errorMessage, String localizedMessage, Throwable cause)

Method Summary

Modifier and TypeMethod and Description
public Optional<SimpleHttpResponse>
public String
getLocalizedMessage()

Overrides org.jabref.logic.JabRefException.getLocalizedMessage.

Creates a localized description of this throwable.

private String
private String
public static Object
public Optional<String>
public static FetcherException
of(URL url, SimpleHttpResponse simpleHttpResponse)

Field Detail

API_KEY_PATTERNback to summary
private static final Pattern API_KEY_PATTERN
httpResponseback to summary
private final SimpleHttpResponse httpResponse
LOGGERback to summary
private static final Logger LOGGER

Hides org.jabref.logic.JabRefException.LOGGER.

REDACTED_STRINGback to summary
private static String REDACTED_STRING
urlback to summary
private final String url

Constructor Detail

FetcherExceptionback to summary
public FetcherException(String url, SimpleHttpResponse httpResponse)
FetcherExceptionback to summary
protected FetcherException(URL url, SimpleHttpResponse httpResponse)
FetcherExceptionback to summary
public FetcherException(URL url, Throwable cause)
FetcherExceptionback to summary
public FetcherException(URL url, String errorMessage, Throwable cause)
FetcherExceptionback to summary
public FetcherException(String errorMessage, Throwable cause)
FetcherExceptionback to summary
public FetcherException(String errorMessage)
FetcherExceptionback to summary
public FetcherException(String errorMessage, String localizedMessage, Throwable cause)

Method Detail

getHttpResponseback to summary
public Optional<SimpleHttpResponse> getHttpResponse()
getLocalizedMessageback to summary
public String getLocalizedMessage()

Overrides org.jabref.logic.JabRefException.getLocalizedMessage.

Doc from java.lang.Throwable.getLocalizedMessage.

Creates a localized description of this throwable. Subclasses may override this method in order to produce a locale-specific message. For subclasses that do not override this method, the default implementation returns the same result as getMessage().

Returns:String

The localized description of this throwable.

Annotations
@Override
getPrefixback to summary
private String getPrefix()
getRedactedUrlback to summary
private String getRedactedUrl()
getRedactedUrlback to summary
public static Object getRedactedUrl(URL source)
getUrlback to summary
public Optional<String> getUrl()
ofback to summary
public static FetcherException of(URL url, SimpleHttpResponse simpleHttpResponse)