public enum QuotaErrorReason extends Enum<QuotaErrorReason>
Java class for QuotaError.Reason.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="QuotaError.Reason">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="EXCEEDED_QUOTA"/>
<enumeration value="UNKNOWN"/>
<enumeration value="REPORT_JOB_LIMIT"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
EXCEEDED_QUOTA
The number of requests made per second is too high and has exceeded the
allowable limit.
|
REPORT_JOB_LIMIT
This user has exceeded the allowed number of new report requests per hour
(this includes both reports run via the UI and reports
run via
ReportService#runReportJob). |
UNKNOWN
The value returned if the actual value is not exposed by the requested API version.
|
| Modifier and Type | Method and Description |
|---|---|
static QuotaErrorReason |
fromValue(String v) |
String |
value() |
static QuotaErrorReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static QuotaErrorReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final QuotaErrorReason EXCEEDED_QUOTA
Another way to mitigate this error is to limit requests to 2 per second for Small Business networks, or 8 per second for Premium networks. Once again this does not guarantee that every request will succeed, but may help reduce the number of times you receive this error.
public static final QuotaErrorReason UNKNOWN
public static final QuotaErrorReason REPORT_JOB_LIMIT
ReportService#runReportJob).
The recommended approach to handle this error is to wait about 10 minutes
and then retry the request. Note that this does not guarantee the request
will succeed. If it fails again, try increasing the wait time.
Another way to mitigate this error is to limit the number of new report requests to 250 per hour per user. Once again, this does not guarantee that every request will succeed, but may help reduce the number of times you receive this error.
public static QuotaErrorReason[] values()
for (QuotaErrorReason c : QuotaErrorReason.values()) System.out.println(c);
public static QuotaErrorReason valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String value()
public static QuotaErrorReason fromValue(String v)
Copyright © 2018. All Rights Reserved.