Class: JustChess::Error

Inherits:
Object
  • Object
show all
Defined in:
lib/just_chess/errors/error.rb

Overview

Error

An error with a message

Instance Method Summary collapse

Constructor Details

#initialize(message = "Generic Error") ⇒ Error

New errors can be instantiated with

Example:

# Instantiates a new Error
JustChess::Error.new("Custom Message")

Parameters:

  • [String] (Hash)

    a customizable set of options



16
17
18
# File 'lib/just_chess/errors/error.rb', line 16

def initialize(message="Generic Error")
  @message = message
end