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

com.cohere.api.errors.CohereApiTooManyRequestsError Maven / Gradle / Ivy

There is a newer version: 1.6.0
Show newest version
/**
 * This file was auto-generated by Fern from our API Definition.
 */
package com.cohere.api.errors;

import com.cohere.api.core.CohereApiApiError;
import com.cohere.api.types.TooManyRequestsErrorBody;

public final class CohereApiTooManyRequestsError extends CohereApiApiError {
    /**
     * The body of the response that triggered the exception.
     */
    private final TooManyRequestsErrorBody body;

    public CohereApiTooManyRequestsError(TooManyRequestsErrorBody body) {
        super("TooManyRequestsError", 429, body);
        this.body = body;
    }

    /**
     * @return the body
     */
    @java.lang.Override
    public TooManyRequestsErrorBody body() {
        return this.body;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy