Class ExtendMembershipException

All Implemented Interfaces:
Serializable

public class ExtendMembershipException extends PerunException
Thrown when the membership could not be extended. The reason is sent as a parameter of the exception.
Author:
Michal Prochazka
See Also:
  • Constructor Details

    • ExtendMembershipException

      public ExtendMembershipException(ExtendMembershipException.Reason reason, String message)
      Constructor with the reason and the message
      Parameters:
      reason - reason why the membership could not be extended
      message - message with details about the cause
    • ExtendMembershipException

      public ExtendMembershipException(ExtendMembershipException.Reason reason, String expirationDate, String message)
      Constructor with the reason, expiration date and the message
      Parameters:
      reason - reason why the membership could not be extended
      expirationDate - expiration date of the membership
      message - message with details about the cause
    • ExtendMembershipException

      public ExtendMembershipException(String message, Throwable cause)
      Constructor with a message and Throwable object
      Parameters:
      message - message with details about the cause
      cause - Throwable that caused throwing of this exception
    • ExtendMembershipException

      public ExtendMembershipException(Throwable cause)
      Constructor with a Throwable object
      Parameters:
      cause - Throwable that caused throwing of this exception
  • Method Details

    • getExpirationDate

      public String getExpirationDate()
      Return string value of member's attribute "membership expiration date" or null when expiration is not set.

      It's filled only when Reason is OUTSIDEEXTENSIONPERIOD.

      Returns:
      String value of membership expiration date
    • getReason

      Return reason why member can't extends his membership.
      Returns:
      Reason why member can't extend membership
      See Also: