Package vaultWeb.exceptions
Class AlreadyVotedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
vaultWeb.exceptions.AlreadyVotedException
- All Implemented Interfaces:
Serializable
Thrown when a user tries to vote for a poll they are already voted in.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAlreadyVotedException(Long pollId, Long userId) Constructs a new AlreadyVotedException for a specific user and poll. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AlreadyVotedException
Constructs a new AlreadyVotedException for a specific user and poll.- Parameters:
pollId- the ID of the poll the user tried to voteuserId- the ID of the user who is already voted in
-