Exception: ReVolt::FileNotFoundError

Inherits:
RVException
  • Object
show all
Defined in:
lib/revolt/exceptions.rb

Overview

Thrown if a file is not found. The file can be accessed via an attribute if necessary

Direct Known Subclasses

InfFileNotFoundError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filename) ⇒ FileNotFoundError

Returns a new instance of FileNotFoundError.



12
13
14
# File 'lib/revolt/exceptions.rb', line 12

def initialize(filename)
  @file = filename.to_s
end

Instance Attribute Details

#fileObject (readonly)

Returns the value of attribute file.



11
12
13
# File 'lib/revolt/exceptions.rb', line 11

def file
  @file
end