Package vaultWeb.exceptions
Class LastAdminException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
vaultWeb.exceptions.LastAdminException
- All Implemented Interfaces:
Serializable
Thrown when an attempt is made to remove the last admin of a group. This exception ensures that
every group always has at least one admin.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLastAdminException(Long groupId) Constructs a LastAdminException for the specified group ID. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LastAdminException
Constructs a LastAdminException for the specified group ID.- Parameters:
groupId- the ID of the group where the last admin removal was attempted
-