Class ServiceExistsException

All Implemented Interfaces:
Serializable

public class ServiceExistsException extends EntityExistsException
This exception is thrown when trying to create a service with a name that has already been used
Author:
Slavek Licehammer
See Also:
  • Constructor Details

    • ServiceExistsException

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

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

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

      public ServiceExistsException(Service service)
      Constructor with the service
      Parameters:
      service - service that already exists
  • Method Details

    • getService

      public Service getService()
      Getter for the service
      Returns:
      service that already exists