Class GenieUserLimitExceededException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.netflix.genie.common.exceptions.GenieException
-
- com.netflix.genie.common.exceptions.GenieUserLimitExceededException
-
- All Implemented Interfaces:
java.io.Serializable
public final class GenieUserLimitExceededException extends GenieException
Extension of a GenieException for a user exceeding some limit (e.g., submitting too many jobs).- Since:
- 3.1.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GenieUserLimitExceededException(java.lang.String user, java.lang.String limitName, java.lang.String message)
Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GenieUserLimitExceededException
createForActiveJobsLimit(java.lang.String user, long activeJobsCount, long activeJobsLimit)
Static factory method to produce a GenieUserLimitExceededException suitable for when the user exceeded the maximum number of active jobs and its trying to submit yet another.-
Methods inherited from class com.netflix.genie.common.exceptions.GenieException
getErrorCode
-
-
-
-
Method Detail
-
createForActiveJobsLimit
public static GenieUserLimitExceededException createForActiveJobsLimit(java.lang.String user, long activeJobsCount, long activeJobsLimit)
Static factory method to produce a GenieUserLimitExceededException suitable for when the user exceeded the maximum number of active jobs and its trying to submit yet another.- Parameters:
user
- the user nameactiveJobsCount
- the count of active jobs for this useractiveJobsLimit
- the current limit on active jobs- Returns:
- a new GenieUserLimitExceededException
-
-