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:
Serializable
Extension of a GenieException for a user exceeding some limit (e.g., submitting too many jobs).
- Since:
- 3.1.0
- See Also:
-
Constructor Summary
ConstructorDescriptionGenieUserLimitExceededException
(String user, String limitName, String message) Constructor. -
Method Summary
Modifier and TypeMethodDescriptioncreateForActiveJobsLimit
(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
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
GenieUserLimitExceededException
Constructor.- Parameters:
user
- user namelimitName
- limit namemessage
- message
-
-
Method Details
-
createForActiveJobsLimit
public static GenieUserLimitExceededException createForActiveJobsLimit(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
-