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.
6 7 8 9 |
# File 'lib/software_challenge_client/invalid_move_exception.rb', line 6 def initialize(msg, move) @move = move super(msg) end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/software_challenge_client/invalid_move_exception.rb', line 11 def to_s "#{super}: #{@move}" end |