Class TooManyRequestsException

All Implemented Interfaces:
Serializable

public class TooManyRequestsException extends CentralDogmaException
A CentralDogmaException that is raised when a client is attempting to send requests more than quota limits.
See Also:
  • Constructor Details

    • TooManyRequestsException

      public TooManyRequestsException()
      Creates a new instance.
    • TooManyRequestsException

      public TooManyRequestsException(String type, String path, double permitsPerSecond)
      Creates a new instance.
    • TooManyRequestsException

      public TooManyRequestsException(String message)
      Creates a new instance.
    • TooManyRequestsException

      public TooManyRequestsException(Throwable cause)
      Creates a new instance.
    • TooManyRequestsException

      public TooManyRequestsException(String message, Throwable cause)
      Creates a new instance.
    • TooManyRequestsException

      public TooManyRequestsException(String message, boolean writableStackTrace)
      Creates a new instance.
      Parameters:
      message - the detail message
      writableStackTrace - whether or not the stack trace should be writable
    • TooManyRequestsException

      protected TooManyRequestsException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace)
      Creates a new instance.
  • Method Details

    • type

      @Nullable public String type()
      Returns the type specified when creating this Exception.