Exception: InvalidMoveException
- Inherits:
-
StandardError
- Object
- StandardError
- InvalidMoveException
- Defined in:
- lib/software_challenge_client/invalid_move_exception.rb
Overview
Exception, die geworfen wird, wenn ein ungültiger Zug ausgeführt wird.
Instance Method Summary collapse
-
#initialize(msg, move) ⇒ InvalidMoveException
constructor
A new instance of InvalidMoveException.
- #to_s ⇒ Object
Constructor Details
#initialize(msg, move) ⇒ InvalidMoveException
Returns a new instance of InvalidMoveException.
7 8 9 10 |
# File 'lib/software_challenge_client/invalid_move_exception.rb', line 7 def initialize(msg, move) @move = move super(msg) end |
Instance Method Details
#to_s ⇒ Object
12 13 14 |
# File 'lib/software_challenge_client/invalid_move_exception.rb', line 12 def to_s "#{super}: #{@move}" end |