Class: JustBackgammon::PointNotFoundError
- Inherits:
-
Object
- Object
- JustBackgammon::PointNotFoundError
- 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
-
#initialize(message = "Point cannot be found.") ⇒ PointNotFoundError
constructor
A new instance of PointNotFoundError.
Constructor Details
#initialize(message = "Point cannot be found.") ⇒ PointNotFoundError
A new instance of PointNotFoundError.
Example:
# Instantiates a new PointNotFoundError
JustBackgammon::PointNotFoundError.new("Custom Message")
16 17 18 |
# File 'lib/just_backgammon/errors/point_not_found_error.rb', line 16 def initialize(="Point cannot be found.") = end |