feat(hand): add exception for max 8 cards
This commit is contained in:
4
src/main/scala/exceptions/TooManyCardsException.scala
Normal file
4
src/main/scala/exceptions/TooManyCardsException.scala
Normal file
@@ -0,0 +1,4 @@
|
||||
package exeptions
|
||||
|
||||
class TooManyCardsException(message: String = "Cannot add more than 8 cards to the hand.")
|
||||
extends Exception(message)
|
||||
Reference in New Issue
Block a user