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
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 Summary
ConstructorDescriptionConstructor with no argumentsGroupMoveNotAllowedException
(String message) Simple constructor with a messageGroupMoveNotAllowedException
(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)GroupMoveNotAllowedException
(String message, Throwable cause) Constructor with a message and Throwable objectConstructor with a Throwable object -
Method Summary
Modifier and TypeMethodDescriptionThe group to which the moving group is movedGetter for the moving groupMethods inherited from class cz.metacentrum.perun.core.api.exceptions.PerunException
getErrorId, getFriendlyMessageTemplate, getMessage, getName, setErrorId
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
GroupMoveNotAllowedException
public GroupMoveNotAllowedException()Constructor with no arguments -
GroupMoveNotAllowedException
Simple constructor with a message- Parameters:
message
- message with details about the cause
-
GroupMoveNotAllowedException
Constructor with a message and Throwable object- Parameters:
message
- message with details about the causecause
- Throwable that caused throwing of this exception
-
GroupMoveNotAllowedException
Constructor with a Throwable object- Parameters:
cause
- Throwable that caused throwing of this exception
-
GroupMoveNotAllowedException
Constructor with a message, group to be moved, destination group (the group to which the moving group is moved)- Parameters:
message
- message with the detailsmovingGroup
- group to be moveddestinationGroup
- the group to which the moving group is moved
-
-
Method Details
-
getDestinationGroup
The group to which the moving group is moved- Returns:
- destination group
-
getMovingGroup
Getter for the moving group- Returns:
- group to be moved
-