Class: JustGo::Error
- Inherits:
-
Object
- Object
- JustGo::Error
- Defined in:
- lib/just_go/errors/error.rb
Overview
Error
An error with a message
Direct Known Subclasses
KoRuleViolationError, NoLibertiesError, NotPlayersTurnError, PointNotEmptyError, PointNotFoundError
Instance Method Summary collapse
-
#initialize(message = "Generic Error") ⇒ Error
constructor
New errors can be instantiated with.
Constructor Details
#initialize(message = "Generic Error") ⇒ Error
New errors can be instantiated with
Example:
# Instantiates a new Error
JustGo::Error.new("Custom Message")
16 17 18 |
# File 'lib/just_go/errors/error.rb', line 16 def initialize(="Generic Error") = end |