Class GroupMoveNotAllowedException

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

public class GroupMoveNotAllowedException extends PerunException
Exception thrown when the group cannot be moved, because it's not allowed f.e. Destination group is subGroup of Moving group, Moving group is already in destination group as subGroup...
Author:
Peter Balcirak
See Also:
  • Constructor Details

    • GroupMoveNotAllowedException

      public GroupMoveNotAllowedException()
      Constructor with no arguments
    • GroupMoveNotAllowedException

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

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

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

      public GroupMoveNotAllowedException(String message, Group movingGroup, Group destinationGroup)
      Constructor with a message, group to be moved, destination group (the group to which the moving group is moved)
      Parameters:
      message - message with the details
      movingGroup - group to be moved
      destinationGroup - the group to which the moving group is moved
  • Method Details

    • getDestinationGroup

      public Group getDestinationGroup()
      The group to which the moving group is moved
      Returns:
      destination group
    • getMovingGroup

      public Group getMovingGroup()
      Getter for the moving group
      Returns:
      group to be moved