Exception: InvalidMoveException

Inherits:
StandardError
  • Object
show all
Defined in:
lib/software_challenge_client/invalid_move_exception.rb

Overview

Exception, die geworfen wird, wenn ein ungültiger Zug ausgeführt wird.

See Also:

Instance Method Summary collapse

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

#messageObject


11
12
13
# File 'lib/software_challenge_client/invalid_move_exception.rb', line 11

def message
  "#{super}: #{@move}"
end