class JustShogi::Error

Error

An error with a message

Public Class Methods

new(message='Genertic Error') click to toggle source

New errors can be instantiated with

@option [String] message

the message to display.

Example:

# Instantiates a new Error
JustShogi::Error.new('Custom Message')
# File lib/just_shogi/errors/error.rb, line 16
def initialize(message='Genertic Error')
  @message = message 
end