PrefetchNetworkException


@Profile.ExperimentalUrlPrefetch
public class PrefetchNetworkException extends PrefetchException


Class for network &server related Exceptions produced by Profile prefetch operations.

Summary

Constants

static final int

Public fields

final int

The HTTP response status code returned from the server, this is based on MDN web response codes.

Public constructors

PrefetchNetworkException(int httpResponseStatusCode)
PrefetchNetworkException(
    @NonNull String error,
    int httpResponseStatusCode
)

Inherited methods

From java.lang.Throwable
synchronized final void
synchronized Throwable
synchronized Throwable
String
String
StackTraceElement[]
synchronized final Throwable[]
synchronized Throwable
void
void
setStackTrace(StackTraceElement[] stackTrace)
String

Constants

NO_HTTP_RESPONSE_STATUS_CODE

public static final int NO_HTTP_RESPONSE_STATUS_CODE = 0

Public fields

httpResponseStatusCode

public final int httpResponseStatusCode

The HTTP response status code returned from the server, this is based on MDN web response codes.

Public constructors

PrefetchNetworkException

public PrefetchNetworkException()

PrefetchNetworkException

public PrefetchNetworkException(@NonNull String error)

PrefetchNetworkException

public PrefetchNetworkException(int httpResponseStatusCode)

PrefetchNetworkException

public PrefetchNetworkException(
    @NonNull String error,
    int httpResponseStatusCode
)