Package vaultWeb.exceptions
Class AdminAccessDeniedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
vaultWeb.exceptions.AdminAccessDeniedException
- All Implemented Interfaces:
Serializable
Thrown when a user attempts to perform an action requiring admin privileges but does not have the
necessary permissions.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAdminAccessDeniedException(Long groupId, Long userId) Constructs a new AdminAccessDeniedException for a specific user and group.AdminAccessDeniedException(String message) Constructs a new AdminAccessDeniedException with a custom message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AdminAccessDeniedException
Constructs a new AdminAccessDeniedException for a specific user and group.- Parameters:
groupId- the ID of the group the user tried to accessuserId- the ID of the user who lacks admin privileges
-
AdminAccessDeniedException
Constructs a new AdminAccessDeniedException with a custom message.- Parameters:
message- the detail message
-