Class PollOptionNotFoundException

All Implemented Interfaces:
Serializable

@ResponseStatus(NOT_FOUND) public class PollOptionNotFoundException extends RuntimeException
Thrown when a user tries to perform poll activities for a optionId that doesn't exist in the respective poll.
See Also:
  • Constructor Details

    • PollOptionNotFoundException

      public PollOptionNotFoundException(String message)
      Constructs a new PollOptionNotFoundException with a custom message.
      Parameters:
      message - the detail message explaining the exception