Exception: ReVolt::FileNotFoundError
- Inherits:
-
RVException
- Object
- RuntimeError
- RVException
- ReVolt::FileNotFoundError
- 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
Instance Attribute Summary collapse
-
#file ⇒ Object
readonly
Returns the value of attribute file.
Instance Method Summary collapse
-
#initialize(filename) ⇒ FileNotFoundError
constructor
A new instance of FileNotFoundError.
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
#file ⇒ Object (readonly)
Returns the value of attribute file.
11 12 13 |
# File 'lib/revolt/exceptions.rb', line 11 def file @file end |