Class: JustGo::PointNotFoundError

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

Overview

PointNotFoundError

A point not found error with a message

Instance Method Summary collapse

Constructor Details

#initialize(message = "Can't find point with that id") ⇒ PointNotFoundError

New not players turn errors can be instantiated with

Example:

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

Parameters:

  • [String] (Hash)

    a customizable set of options



18
19
20
# File 'lib/just_go/errors/point_not_found_error.rb', line 18

def initialize(message="Can't find point with that id") 
  super
end