exceptionstableSource
@API(status = STABLE)
public final class ModrinthRateLimitedException
    extends ModrinthApiException

Thrown when the Modrinth API rate limits a request.

Superclasses
ModrinthApiException → ModrinthException → RuntimeException → Exception → Throwable
Implemented interfaces
Serializable

Constructors

public ModrinthRateLimitedException(
    String message,
    int statusCode,
    String requestUrl,
    long retryAfterSeconds,
    Throwable cause
)
Parameters
messageString
statusCodeint
requestUrlString
retryAfterSecondslong
causeThrowable

Methods

public long getRetryAfterSeconds()
Returns
long

Inherited methods

From ModrinthApiException2 methods

getRequestUrl() getStatusCode()