Sha256: b40ddbc49a98459b8a6ad4d2d6d140fc2c42206253ceb9a422e0aa7493c6f8ae

Contents?: true

Size: 314 Bytes

Versions: 9

Compression:

Stored size: 314 Bytes

Contents

# encoding: utf-8
# frozen_string_literal: true

# Exception, die geworfen wird, wenn ein ungültiger Zug ausgeführt wird.
# @see GameRuleLogic#perform_move
class InvalidMoveException < StandardError
  def initialize(msg, move)
    @move = move
    super(msg)
  end

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
software_challenge_client-22.1.0.1 lib/software_challenge_client/invalid_move_exception.rb
software_challenge_client-22.1.0 lib/software_challenge_client/invalid_move_exception.rb
software_challenge_client-22.0.3 lib/software_challenge_client/invalid_move_exception.rb
software_challenge_client-22.0.2 lib/software_challenge_client/invalid_move_exception.rb
software_challenge_client-21.2.0 lib/software_challenge_client/invalid_move_exception.rb
software_challenge_client-21.1.0 lib/software_challenge_client/invalid_move_exception.rb
software_challenge_client-21.0.2 lib/software_challenge_client/invalid_move_exception.rb
software_challenge_client-21.0.1 lib/software_challenge_client/invalid_move_exception.rb
software_challenge_client-21.0.0 lib/software_challenge_client/invalid_move_exception.rb