Verified Owner
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.logic.JabRefException, org.jabref.logic.util.strings.StringUtil, org.jabref.model.http.SimpleHttpResponse, org.jspecify.annotations.Nullable, org.slf4j.Logger, .LoggerFactory

Field Summary

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

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
pack-priv String
public static String
public Optional<String>
public static FetcherException
of(URL url, SimpleHttpResponse simpleHttpResponse)

Field Detail

httpResponseback to summary
private final @Nullable SimpleHttpResponse httpResponse
LOGGERback to summary
private static final Logger LOGGER

Hides org.jabref.logic.JabRefException.LOGGER.

REDACTED_STRINGback to summary
private static final String REDACTED_STRING
SENSITIVE_PARAM_NAMEback to summary
private static final String SENSITIVE_PARAM_NAME
SENSITIVE_PARAM_PATTERNback to summary
private static final Pattern SENSITIVE_PARAM_PATTERN
urlback to summary
private final @Nullable String url
USERINFO_PATTERNback to summary
private static final Pattern USERINFO_PATTERN

Constructor Detail

FetcherExceptionback to summary
public FetcherException(@Nullable String url, @Nullable 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().

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