All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.microsoft.aad.msal4j.MsalThrottlingException Maven / Gradle / Ivy

Go to download

Microsoft Authentication Library for Java gives you the ability to obtain tokens from Azure AD v2 (work and school accounts, MSA) and Azure AD B2C, gaining access to Microsoft Cloud API and any other API secured by Microsoft identities

There is a newer version: 1.17.1
Show newest version
// Generated by delombok at Wed Jan 25 19:50:33 UTC 2023
package com.microsoft.aad.msal4j;

/**
 * Exception type thrown when service returns throttling instruction:

 * Retry-After header, 429 or 5xx statuses.
 */
public class MsalThrottlingException extends MsalServiceException {
    /**
     * how long to wait before repeating request
     */
    private long retryInMs;

    /**
     * Constructor for MsalThrottlingException class

     *

     * @param retryInMs
     */
    public MsalThrottlingException(long retryInMs) {
        super("Request was throttled according to instructions from STS. Retry in " + retryInMs + " ms.", AuthenticationErrorCode.THROTTLED_REQUEST);
        this.retryInMs = retryInMs;
    }

    /**
     * how long to wait before repeating request
     */
    @java.lang.SuppressWarnings("all")
    public long retryInMs() {
        return this.retryInMs;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy