Class DeckSizeException

All Implemented Interfaces:
Serializable

public class DeckSizeException extends RuntimeException
Represents a scenario where a Deck's size would go over Deck.DEFAULT_DECK_SIZE or below 0.
See Also:
  • Constructor Details

    • DeckSizeException

      public DeckSizeException(String message)
      Default inherited constructor that constructs a message for the exception.
      Parameters:
      message - The message of the exception.