class JustBackgammon::DiceMismatchError

DiceMismatchError

A dice mismatch error with a message

Public Class Methods

new(message="Move does not match dice rolls.") click to toggle source

A new instance of DiceMismatchError.

@option [String] message

the message.

Example:

# Instantiates a new DiceMismatchError
JustBackgammon::DiceMismatchError.new("Custom Message")
# File lib/just_backgammon/errors/dice_mismatch_error.rb, line 16
def initialize(message="Move does not match dice rolls.")
  @message = message
end