Class: JustChess::Error
- Inherits:
-
Object
- Object
- JustChess::Error
- Defined in:
- lib/just_chess/errors/error.rb
Overview
Error
An error with a message
Direct Known Subclasses
CausesCheckError, InvalidMoveError, InvalidPromotionError, MovedIntoCheckError, NoPieceError, NotPlayersTurnError, OffBoardError
Instance Method Summary collapse
-
#initialize(message = "Generic Error") ⇒ Error
constructor
New errors can be instantiated with.