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.

Instance Method Summary collapse

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_sObject



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

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