Class BanAlreadyExistsException

All Implemented Interfaces:
Serializable

public class BanAlreadyExistsException extends EntityExistsException
This exception is thrown when the ban on the facility/resource/vo already exists
Author:
Michal Stava <stavamichal@gmail.com>
See Also:
  • Constructor Details

    • BanAlreadyExistsException

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

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

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

      public BanAlreadyExistsException(Ban ban)
      Constructor with the ban that already exists
      Parameters:
      ban - ban that already exists
  • Method Details

    • getBan

      public Ban getBan()
      Getter for the ban
      Returns:
      the ban that already exists
    • setBan

      public void setBan(Ban ban)
      Setter for the ban
      Parameters:
      ban - the ban that already exists