Exception: Archipelago::Treasure::WrongChestException
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Archipelago::Treasure::WrongChestException
- Defined in:
- lib/archipelago/treasure.rb
Overview
Raised when a Dubloon tries to connect to this Archipelago::Treasure::Chest while we know that we are not the proper destination.
Instance Method Summary collapse
-
#initialize(chest_id, predecessor_id, key) ⇒ WrongChestException
constructor
A new instance of WrongChestException.
Constructor Details
#initialize(chest_id, predecessor_id, key) ⇒ WrongChestException
Returns a new instance of WrongChestException.
59 60 61 |
# File 'lib/archipelago/treasure.rb', line 59 def initialize(chest_id, predecessor_id, key) super("#{key.inspect} is not between #{predecessor_id} and #{chest_id}, and should not be here") end |