com.atlan.exception.RateLimitException Maven / Gradle / Ivy
/* SPDX-License-Identifier: Apache-2.0
Copyright 2022 Atlan Pte. Ltd. */
package com.atlan.exception;
/**
* Error that occurs when no further requests are being accepted from the IP address on which the SDK is running.
* By default, Atlan allows 1800 requests per minute. If your use of the SDK exceed this, you will begin to see
* these exceptions.
*/
public class RateLimitException extends InvalidRequestException {
private static final long serialVersionUID = 2L;
public RateLimitException(ErrorCode error, String... params) {
super(error, params);
}
public RateLimitException(ExceptionMessageDefinition error) {
super(error, 429);
}
}