Class MdsRateLimitedException

All Implemented Interfaces:
Serializable

public class MdsRateLimitedException extends Fido2RuntimeException
Raised when the FIDO Metadata Service answers a TOC download with HTTP 429 (Too Many Requests).

This is deliberately distinct from a generic download failure: a 429 is the endpoint explicitly asking us to stop, so retrying it immediately makes the situation worse rather than better. Callers that retry failed downloads should treat this exception as "do not retry now" and honour getRetryAfterSeconds() when it is present.

See Also:
  • Constructor Details

    • MdsRateLimitedException

      public MdsRateLimitedException(String errorMessage, Integer retryAfterSeconds)
  • Method Details

    • getRetryAfterSeconds

      public Integer getRetryAfterSeconds()
      Returns:
      the delay advertised by the server's Retry-After header, or null when the header was absent or unparseable.