Class InsufficientLicensesException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.redwood.scheduler.infrastructure.exception.BaseSchedulerException
-
- com.redwood.scheduler.infrastructure.exception.SchedulerException
-
- com.redwood.scheduler.api.exception.SchedulerAPIException
-
- com.redwood.scheduler.api.exception.LicenseException
-
- com.redwood.scheduler.api.exception.InsufficientLicensesException
-
- All Implemented Interfaces:
ExceptionData
,Serializable
@Generated("build/redwood/jbs/generated-exceptions/Exceptions.java.tmpl") public class InsufficientLicensesException extends LicenseException
Cannot create more objects than the license allows.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
InsufficientLicensesException(String newErrorCode, String messageFormat, Throwable cause, Object[] exceptionDataEN, Object[] exceptionData)
InsufficientLicensesException(Throwable cause, LicensableItem featureKey, long amount, long limit)
Cannot create more objects than the license allows.
-
Method Summary
-
Methods inherited from class com.redwood.scheduler.infrastructure.exception.BaseSchedulerException
bestException, getDefaultMessageFormat, getErrorCode, getExceptionData, getLocalizedMessage, getLocalizedMessage, getMessage, getTranslation, isSystemLoggable, skipException, toString
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
InsufficientLicensesException
protected InsufficientLicensesException(String newErrorCode, String messageFormat, Throwable cause, Object[] exceptionDataEN, Object[] exceptionData)
-
InsufficientLicensesException
public InsufficientLicensesException(Throwable cause, LicensableItem featureKey, long amount, long limit)
Cannot create more objects than the license allows.- Parameters:
cause
- The originating exception, null if this is the originating exceptionfeatureKey
- Key of the license that was exceeded.amount
- Number of objects trying to create, or number of objects currently present.limit
- Maximum number of objects.
-
-