Class ServiceAlreadyBannedException

java.lang.Object
java.lang.Throwable
java.lang.Exception
cz.metacentrum.perun.core.api.exceptions.PerunException
cz.metacentrum.perun.core.api.exceptions.ServiceAlreadyBannedException
All Implemented Interfaces:
Serializable

public class ServiceAlreadyBannedException extends PerunException
This exception is thrown when the service is already blocked/banned on facility/destination.
Author:
Pavel Zlámal <zlamal@cesnet.cz>
See Also:
  • Constructor Details

    • ServiceAlreadyBannedException

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

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

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

      public ServiceAlreadyBannedException(Service service, Facility facility)
      Constructor with the service and the facility
      Parameters:
      service - service that is already blocked/banned
      facility - facility on which the service is blocked/banned
    • ServiceAlreadyBannedException

      public ServiceAlreadyBannedException(Service service, Destination destination)
      Constructor with the service and the facility
      Parameters:
      service - service that is already blocked/banned
      destination - destination on which the service is blocked/banned
  • Method Details

    • getDestination

      public Destination getDestination()
      Getter for the destination
      Returns:
      destination on which the service is blocked/banned
    • getFacility

      public Facility getFacility()
      Getter for the facility
      Returns:
      facility on which the service is blocked/banned
    • getService

      public Service getService()
      Getter for the service
      Returns:
      service that is already blocked/banned