Class RateLimitException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
codes.grow.packages.skywalking.core.SkyWalkingException
codes.grow.packages.skywalking.core.RateLimitException
- All Implemented Interfaces:
Serializable
The service rate-limited the call (HTTP 429); see
SkyWalkingException.retryAfter().- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionRateLimitException(String message) Creates the exception.protectedRateLimitException(String message, Integer httpStatus, String requestId, boolean retryable, Duration retryAfter, Throwable cause) Creates the exception with response details and an explicitretryableflag, for service subclasses whose errors differ from the default of the code (for example aCONFLICTthat may succeed when retried, or anUNAVAILABLEthat will not).RateLimitException(String message, Integer httpStatus, String requestId, Duration retryAfter, Throwable cause) Creates the exception with response details.RateLimitException(String message, Throwable cause) Creates the exception with a cause. -
Method Summary
Methods inherited from class codes.grow.packages.skywalking.core.SkyWalkingException
code, httpStatus, of, of, requestId, retryable, retryAfterMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RateLimitException
Creates the exception.- Parameters:
message- redacted human text
-
RateLimitException
Creates the exception with a cause.- Parameters:
message- redacted human textcause- underlying error, may be null
-
RateLimitException
public RateLimitException(String message, Integer httpStatus, String requestId, Duration retryAfter, Throwable cause) Creates the exception with response details.- Parameters:
message- redacted human texthttpStatus- HTTP status, may be nullrequestId- vendor request id, may be nullretryAfter- server-requested wait, may be nullcause- underlying error, may be null
-
RateLimitException
protected RateLimitException(String message, Integer httpStatus, String requestId, boolean retryable, Duration retryAfter, Throwable cause) Creates the exception with response details and an explicitretryableflag, for service subclasses whose errors differ from the default of the code (for example aCONFLICTthat may succeed when retried, or anUNAVAILABLEthat will not). The base exception'soffactory with aretryableargument uses it too.- Parameters:
message- redacted human texthttpStatus- HTTP status, may be nullrequestId- vendor request id, may be nullretryable- whether retrying the same call may succeedretryAfter- server-requested wait, may be nullcause- underlying error, may be null
-