Class InvalidScheduledStartException

All Implemented Interfaces:
Serializable

public class InvalidScheduledStartException extends InvalidTemplateStateException
This exception will be thrown if a template status carries a scheduled start which its template cannot carry: one with a negative period or retry count or with input values which the template does not accept or which lack a mandatory one, or an enabled one which shares its ID with an enabled start of another template while both templates are released, instantiable, top-level usable and not outdated.
See Also:
  • Field Details

    • templateID

      protected final UUID templateID
      The ID of the template whose status carries the invalid scheduled start.
    • startID

      protected final UUID startID
      The ID of the invalid scheduled start.
    • reason

      protected final String reason
      Why the scheduled start is invalid.
  • Constructor Details

    • InvalidScheduledStartException

      public InvalidScheduledStartException(UUID templateID, String templateName, UUID startID, String reason)
      Creates a new exception for the designated invalid scheduled start.
      Parameters:
      templateID - The ID of the template whose status carries the invalid scheduled start.
      templateName - The name of the template whose status carries the invalid scheduled start.
      startID - The ID of the invalid scheduled start or null if it has none.
      reason - Why the scheduled start is invalid.
  • Method Details

    • getTemplateID

      public UUID getTemplateID()
      Gets the ID of the template whose status carries the invalid scheduled start.
      Returns:
      The ID of the template whose status carries the invalid scheduled start.
    • getStartID

      public UUID getStartID()
      Gets the ID of the invalid scheduled start.
      Returns:
      The ID of the invalid scheduled start or null if it has none.
    • getReason

      public String getReason()
      Gets why the scheduled start is invalid.
      Returns:
      Why the scheduled start is invalid.