class JustBackgammon::PointNotFoundError

PointNotFoundError

A point not found error with a message

Public Class Methods

new(message="Point cannot be found.") click to toggle source

A new instance of PointNotFoundError.

@option [String] message

the message.

Example:

# Instantiates a new PointNotFoundError
JustBackgammon::PointNotFoundError.new("Custom Message")
# File lib/just_backgammon/errors/point_not_found_error.rb, line 16
def initialize(message="Point cannot be found.")
  @message = message
end