Package com.linkedin.venice.exceptions
Class QuotaExceededException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.linkedin.venice.exceptions.VeniceException
-
- com.linkedin.venice.exceptions.QuotaExceededException
-
- All Implemented Interfaces:
java.io.Serializable
public class QuotaExceededException extends VeniceException
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.linkedin.venice.exceptions.VeniceException
errorType
-
-
Constructor Summary
Constructors Constructor Description QuotaExceededException(java.lang.String throttlerName, java.lang.String currentUsage, java.lang.String quota)
QuotaExceededException(java.lang.String throttlerName, java.lang.String currentUsage, java.lang.String quota, java.lang.Throwable e)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getErrorMessage(java.lang.String throttlerName, java.lang.String currentUsage, java.lang.String quota)
int
getHttpStatusCode()
If this exception is caught in handling an http request, what status code should be returned? Exceptions that extend VeniceException can override this for different behavior-
Methods inherited from class com.linkedin.venice.exceptions.VeniceException
getErrorType
-
-
-
-
Constructor Detail
-
QuotaExceededException
public QuotaExceededException(java.lang.String throttlerName, java.lang.String currentUsage, java.lang.String quota)
-
QuotaExceededException
public QuotaExceededException(java.lang.String throttlerName, java.lang.String currentUsage, java.lang.String quota, java.lang.Throwable e)
-
-
Method Detail
-
getHttpStatusCode
public int getHttpStatusCode()
Description copied from class:VeniceException
If this exception is caught in handling an http request, what status code should be returned? Exceptions that extend VeniceException can override this for different behavior- Overrides:
getHttpStatusCode
in classVeniceException
- Returns:
- 500 (Internal Server Error)
-
getErrorMessage
public static java.lang.String getErrorMessage(java.lang.String throttlerName, java.lang.String currentUsage, java.lang.String quota)
-
-