Class CapacityBelowAcceptedException

All Implemented Interfaces:
Serializable

public class CapacityBelowAcceptedException extends IllegalArgumentException
A capacity limit refused because it is below the Yes answers given at a date the change reaches.

It is a subclass of IllegalArgumentException whose message is the code "agenda.capacity.belowAccepted", as for any other limit refused, so that a caller reading only the code is unchanged. What the subclass adds is the date that blocks: a limit of a series is checked against each of its dates still to come, and the organiser who lowers it has to be told which one holds more Yes answers than the limit asked (D16).

See Also:
  • Field Details

    • CODE

      public static final String CODE
      The code of a limit below the Yes answers, the exception's message.
      See Also:
  • Constructor Details

    • CapacityBelowAcceptedException

      public CapacityBelowAcceptedException(LocalDate date)
      Parameters:
      date - the day, in the series' zone, of the first date of a series whose Yes answers the limit is below, or null when the limit is refused at the date or the event being saved
  • Method Details

    • getDate

      public LocalDate getDate()
      Returns:
      the day, in the series' zone, of the first date of a series whose Yes answers the limit is below, or null when the limit is refused at the date or the event being saved