Exception: ReVolt::InfFileNotFoundError

Inherits:
FileNotFoundError show all
Defined in:
lib/revolt/exceptions.rb

Overview

Thrown if level’s .inf file was not found when needed.

Instance Attribute Summary collapse

Attributes inherited from FileNotFoundError

#file

Instance Method Summary collapse

Constructor Details

#initialize(levels, level, inf_file) ⇒ InfFileNotFoundError

Returns a new instance of InfFileNotFoundError.



21
22
23
24
# File 'lib/revolt/exceptions.rb', line 21

def initialize(levels, level, inf_file)
  super inf_file
  @levels, @level = levels, level
end

Instance Attribute Details

#levelObject (readonly)

Returns the value of attribute level.



20
21
22
# File 'lib/revolt/exceptions.rb', line 20

def level
  @level
end

#levelsObject (readonly)

Returns the value of attribute levels.



20
21
22
# File 'lib/revolt/exceptions.rb', line 20

def levels
  @levels
end