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

public class ServiceAttributesCannotExtend extends PerunException
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 <xsupikov@fi.muni.cz>
See Also:
  • Constructor Details

    • ServiceAttributesCannotExtend

      public ServiceAttributesCannotExtend(String message)
      Simple constructor with a message
      Parameters:
      message - message with details about the cause
    • ServiceAttributesCannotExtend

      public ServiceAttributesCannotExtend(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
    • ServiceAttributesCannotExtend

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

      public ServiceAttributesCannotExtend(Service service, int facilityId)
      Constructor with the service and the facility
      Parameters:
      service - service which cannot be extended by new attribute
      facilityId - id of facility on which the service would cause invalidation of consents
  • Method Details

    • getService

      public Service getService()
      Getter for the service
      Returns:
      service which cannot be extended by new attribute
    • getFacilityId

      public int getFacilityId()
      Getter for the facilityId
      Returns:
      facility on which the service would cause invalidation of consents