Class ServiceAttributesCannotExtend
java.lang.Object
java.lang.Throwable
java.lang.Exception
cz.metacentrum.perun.core.api.exceptions.PerunException
cz.metacentrum.perun.core.api.exceptions.ServiceAttributesCannotExtend
- All Implemented Interfaces:
Serializable
This exception is thrown when trying to add attributes which are forbidden unless the service is globally disabled.
If such attribute would be added, consents for facility would be invalid.
- Author:
- Johana Supikova invalid input: '<'xsupikov@fi.muni.cz>
- See Also:
-
Constructor Summary
ConstructorDescriptionServiceAttributesCannotExtend
(Service service, int facilityId) Constructor with the service and the facilityServiceAttributesCannotExtend
(String message) Simple constructor with a messageServiceAttributesCannotExtend
(String message, Throwable cause) Constructor with a message and Throwable objectConstructor with a Throwable object -
Method Summary
Modifier and TypeMethodDescriptionint
Getter for the facilityIdGetter for the serviceMethods 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
-
ServiceAttributesCannotExtend
Simple constructor with a message- Parameters:
message
- message with details about the cause
-
ServiceAttributesCannotExtend
Constructor with a message and Throwable object- Parameters:
message
- message with details about the causecause
- Throwable that caused throwing of this exception
-
ServiceAttributesCannotExtend
Constructor with a Throwable object- Parameters:
cause
- Throwable that caused throwing of this exception
-
ServiceAttributesCannotExtend
Constructor with the service and the facility- Parameters:
service
- service which cannot be extended by new attributefacilityId
- id of facility on which the service would cause invalidation of consents
-
-
Method Details
-
getFacilityId
public int getFacilityId()Getter for the facilityId- Returns:
- facility on which the service would cause invalidation of consents
-
getService
Getter for the service- Returns:
- service which cannot be extended by new attribute
-