Class DigitalOcean2RateLimitExceededException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.jclouds.rest.RateLimitExceededException
-
- org.jclouds.digitalocean2.exceptions.DigitalOcean2RateLimitExceededException
-
- All Implemented Interfaces:
Serializable
@Beta public class DigitalOcean2RateLimitExceededException extends RateLimitExceededException
Provides detailed information for rate limit exceptions.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DigitalOcean2RateLimitExceededException(HttpResponse response)
DigitalOcean2RateLimitExceededException(HttpResponse response, Throwable cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
remainingRequests()
Long
timeToNextAvailableRequest()
Integer
totalRequestsPerHour()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
DigitalOcean2RateLimitExceededException
public DigitalOcean2RateLimitExceededException(HttpResponse response)
-
DigitalOcean2RateLimitExceededException
public DigitalOcean2RateLimitExceededException(HttpResponse response, Throwable cause)
-
-