Exception: Archipelago::Treasure::UnknownObjectException

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/archipelago/treasure.rb

Overview

Raised whenever a method is called on an object that we dont know about.

Instance Method Summary collapse

Constructor Details

#initialize(chest, key, transaction = nil) ⇒ UnknownObjectException

Returns a new instance of UnknownObjectException.



58
59
60
61
62
63
64
# File 'lib/archipelago/treasure.rb', line 58

def initialize(chest, key, transaction = nil)
  if transaction
    super("#{chest} does not contain #{key} under #{transaction}")
  else
    super("#{chest} does not contain #{key}")
  end
end