Class ExtendMembershipException
java.lang.Object
java.lang.Throwable
java.lang.Exception
cz.metacentrum.perun.core.api.exceptions.PerunException
cz.metacentrum.perun.core.api.exceptions.ExtendMembershipException
- All Implemented Interfaces:
Serializable
Thrown when the membership could not be extended. The reason is sent as a parameter of the exception.
- Author:
- Michal Prochazka
- See Also:
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionExtendMembershipException
(ExtendMembershipException.Reason reason, String message) Constructor with the reason and the messageExtendMembershipException
(ExtendMembershipException.Reason reason, String expirationDate, String message) Constructor with the reason, expiration date and the messageExtendMembershipException
(String message, Throwable cause) Constructor with a message and Throwable objectConstructor with a Throwable object -
Method Summary
Modifier and TypeMethodDescriptionReturn string value of member's attribute "membership expiration date" or null when expiration is not set.Return reason why member can't extends his membership.Methods inherited from class cz.metacentrum.perun.core.api.exceptions.PerunException
getErrorId, getFriendlyMessageTemplate, getMessage, getName, setErrorId
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ExtendMembershipException
Constructor with the reason and the message- Parameters:
reason
- reason why the membership could not be extendedmessage
- 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 extendedexpirationDate
- expiration date of the membershipmessage
- message with details about the cause
-
ExtendMembershipException
Constructor with a message and Throwable object- Parameters:
message
- message with details about the causecause
- Throwable that caused throwing of this exception
-
ExtendMembershipException
Constructor with a Throwable object- Parameters:
cause
- Throwable that caused throwing of this exception
-
-
Method Details
-
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:
-