Class: JustBackgammon::PointNotFoundError

Inherits:
Object
  • Object
show all
Defined in:
lib/just_backgammon/errors/point_not_found_error.rb

Overview

PointNotFoundError

A point not found error with a message

Instance Method Summary collapse

Constructor Details

#initialize(message = "Point cannot be found.") ⇒ PointNotFoundError

A new instance of PointNotFoundError.

Example:

# Instantiates a new PointNotFoundError
JustBackgammon::PointNotFoundError.new("Custom Message")

Parameters:

  • [String] (Hash)

    a customizable set of options



16
17
18
# File 'lib/just_backgammon/errors/point_not_found_error.rb', line 16

def initialize(message="Point cannot be found.")
  @message = message
end